Exemplo n.º 1
0
 public void InitializeAsteroid(ref Asteroid asteroid, AsteroidData data, AsteroidType type)
 {
     asteroid.transform.localScale = data.scale;
     asteroid.NumberOfFragments    = data.numberOfFragments;
     asteroid.Score        = data.scorePoints;
     asteroid.AsteroidType = type;
     asteroid.FragmentType = data.fragmentType;
 }
Exemplo n.º 2
0
 public Asteroid(Transform sceneEnemy, AsteroidData asteroidData, IShip ship, List <EnemyAbility> abilities) :
     base(sceneEnemy, asteroidData, ship, abilities)
 {
     _asteroidMovement = new AsteroidMovement(this, _speed.Current);
 }
Exemplo n.º 3
0
        public virtual AsteroidData GetData(string ResourcesPath)
        {
            AsteroidData data = Resources.Load(ResourcesPath) as AsteroidData;

            return(data);
        }