void Awake() { SSDirector director = SSDirector.getInstance(); //Debug.Log("222"); director.currentScenceController = this; inter_gui = gameObject.AddComponent <InterGUI>() as InterGUI; LoadResources(); actionManager = gameObject.AddComponent <SceneActionManager>() as SceneActionManager; actionManager.getFirstControllerRessoruce(startCoast, endCoast, boat);//对象同步 }
void Start() { actionManager = GetComponent <SceneActionManager> (); }