Beispiel #1
0
    //public void LoadDefendersSpecs(DefenderSpecs _defnederSpecs)



    public override void Setup()
    {
        base.Setup();
        State             = new DefenderState();
        State             = DefenderState.ActiveFollowingPlayer;
        myInteractionType = InteractionType.Explosion;
    }
Beispiel #2
0
 public void ToggleToExloding()
 {
     State = DefenderState.Exloding;
     TimeingManager.SchoudleDelayedFunctionTrigger(DefenderExplosionDuration, TogglToRecreating);
     MoveToInteractingWithEnemiesList = true;
     Debug.Log("Defender Explosion!");
 }
Beispiel #3
0
 public void TogglToRecreating()
 {
     State = DefenderState.Recreating;
     TimeingManager.SchoudleDelayedFunctionTrigger(RecreatingDuration, ToggleToUnactiveFollowingPlayer);
 }
Beispiel #4
0
 public void ToggleToDashingToCenterOfDefendingObject()
 {
     State = DefenderState.DashingToCenterOfDefendingObject;
 }
Beispiel #5
0
 public void ToggleToActiveFollowingPlayer()
 {
     State = DefenderState.ActiveFollowingPlayer;
     MoveBackToPlayersArsenal = true;
 }
Beispiel #6
0
 //ToggleFunction
 public void ToggleToUnactiveFollowingPlayer()
 {
     Target = SimulationInstance.Player.transform;
     State  = DefenderState.UnactiveFollowingPlayer;
     TimeingManager.SchoudleDelayedFunctionTrigger(UnactiveDuration, ToggleToActiveFollowingPlayer);
 }