void Start()
    {
        m_manager = managerParentObject.GetComponent <InvadersManagerScript>();
        Button button = GetComponent <Button>();

        button.onClick.AddListener(ResetScene);
    }
Example #2
0
 private void Awake()
 {
     imageTarget = GameObject.Find("ImageTarget");
     _manager    = imageTarget.GetComponent <InvadersManagerScript>();
 }
Example #3
0
 // Use this for initialization
 void Start()
 {
     scoreText = GetComponent <Text>();
     manager   = GameObject.Find("ImageTarget").GetComponent <InvadersManagerScript>();
 }