示例#1
0
        protected internal override void OnShow(object userData)
#endif
        {
            base.OnShow(userData);

            m_AsteroidData = userData as AsteroidData;
            if (m_AsteroidData == null)
            {
                Log.Error("Asteroid data is invalid.");
                return;
            }

            m_RotateSphere = Random.insideUnitSphere;
        }
示例#2
0
 public static void ShowAsteroid(this EntityComponent entityCompoennt, AsteroidData data)
 {
     entityCompoennt.ShowEntity(typeof(Asteroid), "Asteroid", Constant.AssetPriority.AsteroiAsset, data);
 }