예제 #1
0
		void Start(){
            enemiesList = new List<GameObject>();
            colorList = new List<Color>();
            InitGame();

			guiCanvas = FindObjectOfType<GUIManager> ();
            var plRef = FindObjectOfType<PlayerMovement>();
            plRef.spelling_flag = true;
            levelComplete = false;
            
		}
예제 #2
0
		void Awake(){
			if (instance == null)
				instance = this;
			else if (instance != null)
				Destroy (this);
		}