public void SSActoinEvent(SSAction source, int param = 0, GameObject objParam = null) { if (param == 0) { // 侦察兵跟随玩家 FollowAction followAction = FollowAction.getSSAction(objParam.gameObject.GetComponent <DragonData>().player); this.RunAction(objParam, followAction, this); } else { DragonAction patrolAction = DragonAction.getSSAction(objParam.gameObject.GetComponent <DragonData>().start_position); this.RunAction(objParam, patrolAction, this); Singleton <GameEventManager> .GetInstance.playerEscape(); } }
public void GoDragon(GameObject dragon) { dragonAction = DragonAction.getSSAction(dragon.transform.position); this.RunAction(dragon, dragonAction, this); }