コード例 #1
0
    public FleeState(StatePatternEnemy statePatternEnemy)
    {
        manager = statePatternEnemy;
        manager.ModelSwap(manager.FleeModel);

        //Sets the powerup timer
        manager.powerUpTimer = 20f;
        Debug.Log("Flee");
    }
コード例 #2
0
 public DeadState(StatePatternEnemy statePatternEnemy)
 {
     manager = statePatternEnemy;
     manager.ModelSwap(manager.DeadModel);
 }
コード例 #3
0
 public FollowState(StatePatternEnemy statePatternEnemy)
 {
     manager = statePatternEnemy;
     manager.ModelSwap(manager.WanderModel);
 }