ellanjiang / starforce Goto Github PK
View Code? Open in Web Editor NEWThis is a demo made with Game Framework.
Home Page: https://GameFramework.cn
License: MIT License
This is a demo made with Game Framework.
Home Page: https://GameFramework.cn
License: MIT License
UI Setting Page Language toggle, 每一个Toggle的OnValueChange都播放声音,更改语言时,会播放两次声音。
2018版本的Unity根本打不开这个项目
直接把Scene和Game面板卡掉了,只剩下一个黑屏……
Download failure, download serial id '0', download path '/Users/Prism/Library/Application Support/Jiang Yin/Star Force/version.dat', download uri 'http://gameframework.cn/starforce/resources/0_1_0_1/osx/version.0c98cd0b.dat', error message 'Timeout'.
@EllanJiang E大,学习您的Demo碰到个pad 和iphone真机运行不了的问题,已经打包资源到StreamingAssets下了,安卓真机可以,iOS不行,xcode提示package list is invalid!还请告知,感谢!
比如 Assets\GameMain\Scripts\HPBar\HPBarItem.cs 中
public bool Refresh()
{
if (m_CachedCanvasGroup.alpha <= 0f)
{
return false;
}
if (m_Owner != null && Owner.Available && Owner.Id == m_OwnerId)
{
Vector3 worldPosition = m_Owner.CachedTransform.position + Vector3.forward;
Vector3 screenPosition = GameEntry.Scene.MainCamera.WorldToScreenPoint(worldPosition);
Vector2 position;
if (RectTransformUtility.ScreenPointToLocalPointInRectangle((RectTransform)m_ParentCanvas.transform, screenPosition,
m_ParentCanvas.worldCamera, out position))
{
m_CachedTransform.localPosition = position;
}
}
return true;
}
Owner.Available
应改为 Owner.Logic.Available
m_Owner.CachedTransform.position
应改为 m_Owner.Logic.CachedTransform.position
在
Assets\GameMain\Scripts\HPBar\HPBarItem.cs
Assets\GameMain\Scripts\Utility\AIUtility.cs
Assets\GameMain\Scripts\Entity\EntityExtension.cs
Assets\GameMain\Scripts\Sound\SoundExtension.cs
中发现了这个问题,但我没有把所有文件用过一遍,所以不一定全hhh
同时另外一个问题是 不能从 'UnityGameFramework.Runtime.EntityLogic' 类型转换到 'UnityGameFramework.Runtime.Entity'
比如 Assets\GameMain\Scripts\Entity\EntityExtension.cs 中
public static Entity GetGameEntity(this EntityComponent entityComponent, int entityId)
{
UnityGameFramework.Runtime.Entity entity = entityComponent.GetEntity(entityId);
if (entity == null)
{
return null;
}
return (Entity)entity.Logic;
}
Closed.
单独下载这个工程无法运行,缺少很多脚本...怎么解决
Assets/GameMain/Scripts/Editor/StarForceBuildEventHandler.cs(9,25):
error CS0535: `StarForce.Editor.StarForceBuildEventHandler' does not implement interface member `UnityGameFramework.Editor.AssetBundleTools.IBuildEventHandler.PreProcessBuildAll(string, string, string, string, int, string, UnityEditor.BuildAssetBundleOptions, bool, string, string, string, string, string, string)'
还是有报错啊
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.