Пример #1
0
    // protected GUIText m_guiText;

    // Use this for initialization
    void Start()
    {
        if (m_initialized)
        {
            throw new System.ApplicationException(
                      "Multiple instances of WorldInterfaceWrapper detected.");
        }

        m_initialized = true;

        m_worldIface = WorldInterface.Instance();
    }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     m_worldIface = WorldInterface.Instance();       // This is a singleton
     m_id         = this.GetComponent <WorldObject>().m_id;
 }