Exemple #1
0
    private void startCatching(int id, GameObject hero)
    {
        PatrolFollowAction action = PatrolFollowAction.GetAction(hero, 0.3f);

        patrols[id].GetComponent <PatrolData>().active = true;
        action_manager.RunAction(patrols[id], action, this.action_manager);
        //Debug.Log(id);
    }
 // 追击
 public void Follow(GameObject player, GameObject patrol)
 {
     this.follow = PatrolFollowAction.GetAction(player);
     this.RunAction(patrol, follow, this);
 }
Exemple #3
0
 // 追击
 public void Follow(GameObject player, GameObject patrol)
 {
     this.follow = PatrolFollowAction.GetAction(player);
     Debug.Log("PatrolActionManager.Follow()");
     this.RunAction(patrol, follow, this);
 }