Ejemplo n.º 1
0
 private void Awake()
 {
     _t      = GetComponent <Transform>();
     _body   = GetComponent <Rigidbody2D>();
     _effect = GetComponent <AntEffectSpawner>();
     _actor  = GetComponent <AntActor>();
     _actor.Stop();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Stops tank movement.
 /// </summary>
 public void StopMove()
 {
     _isMove           = false;
     _isBrake          = false;
     _speed            = 0.0f;
     _accelerationTime = 0.0f;
     Velocity          = Vector2.zero;
     _actor.Stop();
     StopMovementEffects();
 }