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