protected new void Start() { sceneController = (FirstSceneController)Director.getInstance().currentScenceController; sceneController.actionManager = this; Fly.Add(CCFlyAction.GetSSAction()); }
//实例化一个动作给动作管理器 public static CCFlyAction GetSSAction() { CCFlyAction action = ScriptableObject.CreateInstance <CCFlyAction>(); return(action); }