コード例 #1
0
 // Use this for initialization
 void Start()
 {
     m_GUIMapEventsScript   = GameObject.FindGameObjectWithTag("GUIMapEventSpriteTag").GetComponent <GSP.GUIMapEvents> ();
     m_MapEventScript       = GameObject.FindGameObjectWithTag("DieTag").GetComponent <GSP.MapEvent> ();
     m_BottomBarScript      = GameObject.FindGameObjectWithTag("GamePlayStateMachineTag").GetComponent <GSP.JAVIERGUI.GUIBottomBar>();
     m_GamePlayStateMachine = GameObject.FindGameObjectWithTag("GamePlayStateMachineTag").GetComponent <GSP.GameplayStateMachine>();
 }
コード例 #2
0
        //==========================================================
        //--------------------Functions-----------------------------
        //==========================================================

        // Use this for initialization
        void Start()
        {
            m_currEnumMpEvent            = m_EnumMapEvent.NOTHING;
            m_GUIEnemyScript             = GameObject.FindGameObjectWithTag("GUIMapEventSpriteTag").GetComponent <GSP.JAVIERGUI.GUIEnemy>();
            m_GUIAllyScript              = GameObject.FindGameObjectWithTag("GUIMapEventSpriteTag").GetComponent <GSP.JAVIERGUI.GUIAlly>();
            m_GUIItemScript              = GameObject.FindGameObjectWithTag("GUIMapEventSpriteTag").GetComponent <GSP.JAVIERGUI.GUIItem>();
            m_GUIResourceScript          = GameObject.FindGameObjectWithTag("GUIMapEventSpriteTag").GetComponent <GSP.JAVIERGUI.GUIResource>();
            m_GUINothingScript           = GameObject.FindGameObjectWithTag("GUIMapEventSpriteTag").GetComponent <GSP.JAVIERGUI.GUINothing>();
            m_GameplayStateMachineScript = GameObject.FindGameObjectWithTag("GamePlayStateMachineTag").GetComponent <GSP.GameplayStateMachine>();
            m_GUIBottomBarScript         = GameObject.FindGameObjectWithTag("GamePlayStateMachineTag").GetComponent <GSP.JAVIERGUI.GUIBottomBar>();
        }
コード例 #3
0
        }         //end public enum GamePlayState

        // Use this for initialization
        void Start()
        {
            m_GameplayStateMachineScript = GameObject.FindGameObjectWithTag("GamePlayStateMachineTag").GetComponent <GameplayStateMachine>();
            m_MovementScript             = GameObject.FindGameObjectWithTag("GUIMovementTag").GetComponent <Movement>();
            audioSrc = GameObject.FindGameObjectWithTag("AudioSourceTag");
        }               //end void Start()