Пример #1
0
        void SetInitialReferences()
        {
            gunMaster   = GetComponent <Gun_Master>();
            myTransform = transform;

            if (transform.root.GetComponent <NPC_Master>() != null)
            {
                npcMaster = transform.root.GetComponent <NPC_Master>();
            }

            if (transform.root.GetComponent <NPC_StatePattern>() != null)
            {
                npcStatePattern = transform.root.GetComponent <NPC_StatePattern>();
            }
        }
Пример #2
0
        void SetInitialReferences()
        {
            gunMaster = GetComponent <Gun_Master>();

            if (GetComponent <Animator>() != null)
            {
                myAnimator = GetComponent <Animator>();
            }

            if (GameManager_References._player != null)
            {
                playerMaster = GameManager_References._player.GetComponent <Player_Master>();
                ammoBox      = GameManager_References._player.GetComponent <Player_AmmoBox>();
            }
        }
Пример #3
0
 void SetInitialReferences()
 {
     gunMaster = GetComponent <Gun_Master>();
 }
Пример #4
0
 void SetInitialReferences()
 {
     gunMaster    = GetComponent <Gun_Master>();
     myTransform  = transform;
     camTransform = myTransform.parent;
 }