void Start() { Debug.Log("start"); SSDirector director = SSDirector.GetInstance(); director.CurrentScenceController = this; spider_factory = Singleton <SpiderFactory> .Instance; action_manager = gameObject.AddComponent <SpiderActionManager>() as SpiderActionManager; Instantiate(Resources.Load <GameObject>("Prefabs/Maze")); player = Instantiate(Resources.Load("Prefabs/Player"), new Vector3(0, 9, 0), Quaternion.identity) as GameObject; spiders = spider_factory.GetSpiders(); for (int i = 0; i < spiders.Count; i++) { action_manager.GoSpider(spiders[i]); } main_camera.GetComponent <CameraFlow>().follow = player; main_camera.GetComponent <CameraFlow>().enabled = true; Debug.Log("camera"); recorder = Singleton <ScoreRecorder> .Instance; }