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(); }
public void Parar() { tankai.StopFire(); Task.current.Succeed(); }