Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     if (myManager == null)
     {
         myManager = GameObject.Find("GameManager").GetComponent <MyManager> ();
     }
     menu    = myManager.GetControl("menu_button");
     trigger = myManager.GetControl("trigger_button");
     CloseAll();
 }
Beispiel #2
0
    public void UpdateKeyLabels(MyManager mm)
    {
        Control c = mm.GetControl(this.key);

        this.kb.GetComponentInChildren <Text> ().text = c.key.ToString();
        this.jk.GetComponentInChildren <Text> ().text = c.joyName.ToString();
    }