private void Start() { //txtSpanValue.text = spanValue.point1 + "\n" + // spanValue.point2; GCP03 = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle03>(); player = GameObject.FindGameObjectWithTag("Player").transform; }
private void Start() { GCP03 = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle03>(); btnChoice = GetComponent <Button>(); btnChoice.onClick.AddListener(TaskOnClick); }
public void InitDatabase() { Debug.Log("Connect GameController of Puzzle03"); GCP03 = GetComponent <GameControllerPuzzle03>(); //Init sub level environment foreach (Transform T in subLevelPlanes) { T.gameObject.SetActive(false); } subLevelPlanes[0].gameObject.SetActive(true); }
protected override void InitWindow() { Debug.Log("Init Puzzle01 window"); base.InitWindow(); BtnChoices.Add(BtnChoices1); BtnChoices.Add(BtnChoices2); BtnChoices.Add(BtnChoices3); GCP03 = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle03>(); GCP03.InitGameController(this); ClearSpanValues(); ClearFeedbackPanel(); }
private void Start() { GCP03 = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle03>(); }