void Start() { player = ThirdPersonCharacterController.instance; detectionArea = GetComponent <SphereCollider>(); if (enemySpawners == null || enemySpawners.Length == 0) { Debug.LogWarning("Add some spawners to the activator"); } }
// 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); }
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>(); }
// Start is called before the first frame update void Awake() { Instance = this; Player.Health = Player.HP; Player.CurrentSpeed = Player.Speed; }
// Start is called before the first frame update void Start() { text.text = "Coins: 0"; playerBody = GetComponent <Rigidbody>(); charController = GetComponent <ThirdPersonCharacterController>(); }
private void Awake() { flying = GetComponent <ThirdPersonFlyingController>(); walking = GetComponent <ThirdPersonCharacterController>(); rb = GetComponent <Rigidbody>(); }