상속: InteractibleObject
예제 #1
0
        public void Open(InteractiblePuzzle ip)
        {
            messageText.text = ip.message;
			foreach (Button child in ip.myPuzzleCanvas.GetComponentsInChildren<Button>(true)) {
				if (child.tag == "ExitButton") {
					exitButton = child;
				}
			}
			exitButton.onClick.AddListener (Exit);
            currentPuzzleObject = ip;
			ActivateExit (true);
            base.Open();
        }
예제 #2
0
 public void Open(InteractiblePuzzle ip)
 {
     messageText.text = ip.message;
     foreach (Button child in ip.myPuzzleCanvas.GetComponentsInChildren <Button>(true))
     {
         if (child.tag == "ExitButton")
         {
             exitButton = child;
         }
     }
     exitButton.onClick.AddListener(Exit);
     currentPuzzleObject = ip;
     ActivateExit(true);
     base.Open();
 }