void Start () { _playerScript = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerController>(); _moeScript = GameObject.FindGameObjectWithTag("Moe").GetComponent<MoeAI>(); _moeNav = GameObject.FindGameObjectWithTag("Moe").GetComponent<NavMeshAgent>(); _invisible = GetComponent<MeshRenderer>(); _invisible.enabled = false; if (breakableWall) breakableWall.canBeDestroyed = false; }
void Start() { _playerScript = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>(); _moeScript = GameObject.FindGameObjectWithTag("Moe").GetComponent <MoeAI>(); _moeNav = GameObject.FindGameObjectWithTag("Moe").GetComponent <NavMeshAgent>(); _invisible = GetComponent <MeshRenderer>(); _invisible.enabled = false; if (breakableWall) { breakableWall.canBeDestroyed = false; } }
void Awake() { _moeScript = GameObject.FindGameObjectWithTag("Moe").GetComponent<MoeAI>(); _playerControls = GetComponent<Rigidbody>(); _playerSounds = GetComponent<AudioSource>(); _playerAnimator = GetComponent<Animator>(); _dashAnim = Animator.StringToHash("Dash"); _shootAnim = Animator.StringToHash("Shoot"); // Player metrics moveSpeedModifier = 1f; _canRoll = true; _canShoot = true; canTaunt = true; tauntDisabled = false; }
void Awake() { _moeScript = GameObject.FindGameObjectWithTag("Moe").GetComponent <MoeAI>(); _playerControls = GetComponent <Rigidbody>(); _playerSounds = GetComponent <AudioSource>(); _playerAnimator = GetComponent <Animator>(); _dashAnim = Animator.StringToHash("Dash"); _shootAnim = Animator.StringToHash("Shoot"); // Player metrics moveSpeedModifier = 1f; _canRoll = true; _canShoot = true; canTaunt = true; tauntDisabled = false; }