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