void Update() { timer -= Time.deltaTime; if (InputManager.instance.player.GetButtonDown("Interact")) { inGameUIContoller.DetermineAction(4); gameController.BecomePlayer(); } if (InputManager.instance.player.GetButtonDown("Dash")) { Dash(); } AdjustCamera(); if (rb.velocity.magnitude > 0) { anim["Take 001"].speed = 7.0f; if (!source.isPlaying) { source.clip = walk; source.loop = true; source.Play(); } } else if (rb.velocity.magnitude <= 0) { anim["Take 001"].speed = 0f; source.Stop(); } }
void CollideWithRemote() { /***Checks for Remote Control***/ isRemote = Physics.CheckSphere(colliderChecker.position, colliderDistance, remoteMask); if (isRemote) { inGameUIController.DetermineAction(1); if (isRemote && InputManager.instance.player.GetButtonDown("Interact")) { inGameUIController.DetermineAction(3); gameController.BecomeEnemy(); } } else { inGameUIController.DetermineAction(2); } }