void Awake() { Director director = Director.getInstance(); director.setFPS(60); director.currentSceneController = this; director.currentSceneController.LoadResources(); this.gameObject.AddComponent <HomeGUI>(); }
private void Awake() { Director director = Director.getInstance(); director.setFPS(60); director.currentSceneController = this; judgement = Judge.getInstance(); factory = PatrolFactory.getInstance(); actionManager = this.gameObject.AddComponent <SSActionManager>(); this.gameObject.AddComponent <UserGUI>(); director.currentSceneController.LoadResources(); }