Esempio n. 1
0
 void Start()
 {
     _state         = new TankState(gameObject, 0, Vector2.up);
     _currentWeapon = _mainWeapon.GetComponent <Weapon>();
     // optimization
     _transform = transform;
 }
Esempio n. 2
0
 public void ChangeState(TankState state)
 {
     _state = state;
     _state.UpdateState();
 }