public void InitDatabase() { Debug.Log("Connect GameController of Puzzle02"); GCP02 = GetComponent <GameControllerPuzzle02>(); refreshDatabase(); }
void Start() { GCP02 = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle02>(); audioSource = GetComponent <AudioSource>(); bool isHit = false; }
protected override void InitWindow() { Debug.Log("Init Puzzle02 window"); base.InitWindow(); GCP02 = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle02>(); Debug.Log("Call GameController of Puzzle02 to connect"); GCP02.InitGameController(this); }
// Start is called before the first frame update void Start() { text.gameObject.GetComponent <TextMesh>().color = Color.black; brackets.gameObject.GetComponent <TextMesh>().color = Color.black; GCP02 = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle02>(); DBP02 = GameObject.FindGameObjectWithTag("GameController").GetComponent <DatabasePuzzle02>(); DBP02.InitDatabase(); transform.values = new int[] { 0, 0, 0, 0 }; transform.values = DBP02.transforms0[index].values; Debug.Log("Matrix" + index + ": " + transform.values[0] + ", " + transform.values[1] + ", " + transform.values[2] + ", " + transform.values[3]); text.GetComponent <TextMesh>().text = "" + transform.values[0] + " " + transform.values[1] + "\n" + transform.values[2] + " " + transform.values[3]; }
// Start is called before the first frame update void Start() { vectorText.gameObject.SetActive(false); GCP02 = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle02>(); }
// Start is called before the first frame update void Start() { GCP02 = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle02>(); }