void Input_Eq() { if (Input.GetKeyDown(KeyCode.I)) { playerMachine.ChangeState(new IPS_Equipment()); } }
public override void Init() { base.Init(); machine = GetComponent <PlayerMachine>(); collectablesAmount = 0; inmunity = false; machine.ChangeState("PlayerIdleState"); }
public void Enter() { result = null; playerMachine = new PlayerMachine(); playerMachine.playerData = new PlayerMachine.Data(); playerMachine.ChangeState(new IPS_Move()); var gui = UnityEngine.Object.FindObjectOfType <GUIControll>(); gui.GUIEnabled.mission.Player.SetActive(true); }
public override void OnHit() { machine.ChangeState("PlayerHitState"); MainManager.Get.gameManager.cameraController.Shake(); UIManager.Get.hudObject.UpdateHealth((float)currentHitpoints / maxHitpoints); }