Пример #1
0
 void Start()
 {
     GameObject st = GameObject.Find ("state");
     state=st.GetComponent("GUIText") as GUIText;
     communicator=GameObject.Find("Communicator");
     comm = communicator.GetComponent ("CommunicationCotroler") as CommunicationCotroler;
 }
Пример #2
0
    void Start()
    {
        GameObject st = GameObject.Find("state");

        state        = st.GetComponent("GUIText") as GUIText;
        communicator = GameObject.Find("Communicator");
        comm         = communicator.GetComponent("CommunicationCotroler") as CommunicationCotroler;
    }