Esempio n. 1
0
	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;
    }
Esempio n. 2
0
    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;
        }
    }
Esempio n. 3
0
    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;
    }
Esempio n. 4
0
    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;
    }