public static PatrolFactory getInstance() { if (patrolfactory == null) { patrolfactory = new PatrolFactory(); } return(patrolfactory); }
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(); }