public void EnterVent(VentsSystem ventsSystem) { this.ventsSystem = ventsSystem; //Animation and sounds playerAnimator.SetTrigger("Vent"); playerAudioController.StopWalking(); playerAudioController.PlayVent(); }
//Called When the Vents System is Entered or moved to a new Vent public void VentEntered(VentsSystem ventsSystem, int CurrentVentID, List <Vent> connectedVents) { this.ventsSystem = ventsSystem; //Go through all the vents and set the new arrows foreach (Vent vent in connectedVents) { if (vent.ID != CurrentVentID) { SetArrow(connectedVents[CurrentVentID].GetPos(), vent.GetPos(), vent.ID); } } }