void Start()
    {
        player        = ThirdPersonCharacterController.instance;
        detectionArea = GetComponent <SphereCollider>();

        if (enemySpawners == null || enemySpawners.Length == 0)
        {
            Debug.LogWarning("Add some spawners to the activator");
        }
    }
Пример #2
0
    // Start is called before the first frame update
    public virtual void Start()
    {
        playerNoiseManager = GetComponentInParent <PlayerNoise>();
        tpcc               = GetComponentInParent <ThirdPersonCharacterController>();
        currentCamera      = tpcc.currentCamera;
        thirdPersonCamFlag = tpcc.IsThirdPersonCameraActive();
        currentAmmo        = maxAmmo;

        //añadimos este observer ao subject pause
        GameHandler.instance.RegisterObserverPause(this);
    }
Пример #3
0
        public void Start()
        {
            player = ThirdPersonCharacterController.instance;


            wanderPoint = RandomWanderPoint();
            animator    = GetComponentInChildren <Animator>();         // The animator is in the enemy model which is a child of the enemy object

            animator.SetBool("isDead", false);

            AudioManager.instance.Play(idleSound, gameObject, false, zombieID);
            // Just for debugging with Enemy object
            // zombieRenderer = GetComponent<Renderer>();
        }
    // private Weapon weapon;

    public void Start()
    {
        tpcc           = GetComponent <ThirdPersonCharacterController>();
        sphereCollider = GetComponent <SphereCollider>();
    }
Пример #5
0
 // Start is called before the first frame update
 void Awake()
 {
     Instance            = this;
     Player.Health       = Player.HP;
     Player.CurrentSpeed = Player.Speed;
 }
Пример #6
0
 // Start is called before the first frame update
 void Start()
 {
     text.text      = "Coins: 0";
     playerBody     = GetComponent <Rigidbody>();
     charController = GetComponent <ThirdPersonCharacterController>();
 }
Пример #7
0
 private void Awake()
 {
     flying  = GetComponent <ThirdPersonFlyingController>();
     walking = GetComponent <ThirdPersonCharacterController>();
     rb      = GetComponent <Rigidbody>();
 }