Example #1
0
 public GameController()
 {
     audioSource = new CachedReference <AudioSource>(GetComponent <AudioSource>);
 }
Example #2
0
 public GuiButton()
 {
     unityButton = new CachedReference <Button>(GetComponent <Button>);
     unityText   = new CachedReference <Text>(GetComponentInChildren <Text>);
 }
Example #3
0
 public GuiText()
 {
     unityText = new CachedReference <Text>(GetComponent <Text>);
 }