private void Awake() { Instance = this; Find(); AddListen(); }
void Start() { snake_trans = GetComponent <Transform> (); snake_trans.position = new Vector3(0.0f, 0.0f, 0.0f); scoreCtr = GameObject.Find("/Canvas/ScoreValue").GetComponent <ScoreCtr> (); userInterCtr = GameObject.Find("/Canvas/UIController").GetComponent <UICtr> (); soundCtr = GameObject.Find("/Scene/Sound").GetComponent <SceneSoundCtr> (); }
private void Awake() { Instance = this; _readyButton.gameObject.SetActive(false); }