Ejemplo n.º 1
0
 void SetInitialReferences()
 {
     anime                 = monster.GetComponent <Animator>();
     playerMaster          = GetComponent <Player_Master>();
     firstPersonController = GetComponent <NewFirstPersonController>();
     walk = false;
     run  = false;
 }
Ejemplo n.º 2
0
        void SetInitialReferences()
        {
            playerMaster = GetComponent <Player_Master>();
            pickupMessage.SetActive(false);
            middleHintBarDisplay = false;
            hintText.gameObject.SetActive(true);
            pressText = "";

            countingCircle.SetActive(true);
            circle            = countingCircle.GetComponent <Image>();
            circle.fillAmount = 0;
            confirmWindow.SetActive(false);
        }
 void SetInitialReferences()
 {
     gameManagerMaster = GetComponent <GameManager_Master>();
     if (player != null)
     {
         playerMaster     = player.GetComponent <Player_Master>();
         playerController = player.GetComponent <NewFirstPersonController>();
     }
     else
     {
         Debug.LogWarning("Player is not assigned on GameManager_PlayerControllerToggle");
     }
 }
Ejemplo n.º 4
0
        void SetInitialReferences()
        {
            if (player != null)
            {
                playerMaster = player.GetComponent <Player_Master>();
                torch        = player.GetComponent <TorchBehavior>();
            }
            else
            {
                Debug.LogWarning("Player is not assigned on Hud_EnergyBar");
            }


            energyTransform = GetComponent <RectTransform>();
            image           = GetComponent <Image>();
        }
Ejemplo n.º 5
0
        void SetInitialReferences()
        {
            if (player != null)
            {
                playerMaster = player.GetComponent <Player_Master>();
            }
            else
            {
                Debug.LogWarning("Player is not assigned on Hud_BloodSplash");
            }

            image       = GetComponent <Image>();
            image.color = new Color(r, g, b, alpha);

            background.color = new Color(84f / 255f, 0, 0, alpha);
        }
Ejemplo n.º 6
0
        void SetInitialReferences()
        {
            if (audioObject != null)
            {
                audioManager = audioObject.GetComponent <AudioManager>();
            }
            else
            {
                Debug.LogWarning("Please attach audioManager Gameobject");
            }

            if (game != null)
            {
                gameManagerMaster = game.GetComponent <GameManager_Master>();
            }
            else
            {
                Debug.LogWarning("Please attach GameManager Gameobject");
            }

            playerMaster = GetComponent <Player_Master>();
            torchMaster  = GetComponent <TorchBehavior>();
            soundOn      = true;
        }
Ejemplo n.º 7
0
 void Awake()
 {
     instance = this;
 }
Ejemplo n.º 8
0
 void SetInitialReference()
 {
     ps           = flame.GetComponent <ParticleSystem>();
     playerMaster = GetComponent <Player_Master>();
     torch_GameObject.SetActive(false);
 }
Ejemplo n.º 9
0
 void SetInitialReferences()
 {
     playerMaster = GetComponent <Player_Master>();
     playerMotor  = GetComponent <Player_Motor>();
 }
Ejemplo n.º 10
0
 void SetInitialReferences()
 {
     gameManagerMaster = gameManager.GetComponent <GameManager_Master>();
     playerMaster      = GetComponent <Player_Master>();
 }