public void Setup() { gcs = GetComponent <PangGameControllerScript> (); mps = gcs.player.GetComponent <PangMovePlayerScript> (); health = gameStatusPanel.transform.Find("Health").gameObject; points = gameStatusPanel.transform.Find("Points").GetComponent <Text> (); }
// Use this for initialization void Start() { gcs = GameObject.FindWithTag("GameController").GetComponent <PangGameControllerScript> (); }