Пример #1
0
 // Use this for initialization
 void Start()
 {
     uiController = GameObject.FindGameObjectWithTag("GameController").GetComponent <UIControllerM> ();
 }
    // -------------- Inherited from MonoBehavior ---------------------------- //

    void Awake()
    {
        uiController = GetComponent <UIControllerM> ();
    }