Beispiel #1
0
    public void TakeCover()
    {
        _tank.StopFire();
        Vector3 awayFromTarget = (_tank.Position - _tank.Targets[0]).normalized;
        Vector3 destination    = _tank.Position + awayFromTarget * 5;

        _tank.Agent.SetDestination(-destination);
        Task.current.Succeed();
    }
Beispiel #2
0
 public void Parar()
 {
     tankai.StopFire();
     Task.current.Succeed();
 }