Example #1
0
 protected override void Awake()
 {
     base.Awake();
     area = transform.GetComponentInChildren <GameAreaInit>();
     text = transform.FindChildByName("TimeText").GetComponent <TimeScript>();
     GetEventListener("ReturnButton").PointerClick  += OnReturnButtonClick;
     GetEventListener("RestartButton").PointerClick += OnRestartButtonClick;
 }
Example #2
0
 void Start()
 {
     area = transform.parent.FindChildByName("GameArea").GetComponent <GameAreaInit>();
     text = transform.GetComponent <Text>();
     Init();
 }
Example #3
0
 public override void Init()
 {
     base.Init();
     audioSource = Camera.main.GetComponent <AudioSource>();
     gameArea    = transform.FindChildByName("GameArea").GetComponent <GameAreaInit>();
 }