示例#1
0
 public void Init(Vector2 dir)
 {
     _currentLife   = 0;
     _isAlive       = true;
     _moveDirection = dir;
     _healthComponent.RefillLive(GameEntityTag.UNKNOWN);
 }
示例#2
0
        public void Init(Vector2 dir, AsteroidData asteroidData)
        {
            this.AsteroidData = asteroidData;
            _moveDirection    = dir;
            _moveSpeed        = Random.Range(asteroidData.minSpeed, asteroidData.maxSpeed);
            healthComponent.RefillLive(GameEntityTag.UNKNOWN);

            _currentVelocity = _moveDirection * _moveSpeed;
        }
示例#3
0
 public void Init()
 {
     _entityHealthComponent.RefillLive(GameEntityTag.UNKNOWN);
 }