コード例 #1
0
 void Input_Eq()
 {
     if (Input.GetKeyDown(KeyCode.I))
     {
         playerMachine.ChangeState(new IPS_Equipment());
     }
 }
コード例 #2
0
 public override void Init()
 {
     base.Init();
     machine            = GetComponent <PlayerMachine>();
     collectablesAmount = 0;
     inmunity           = false;
     machine.ChangeState("PlayerIdleState");
 }
コード例 #3
0
    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);
    }
コード例 #4
0
 public override void OnHit()
 {
     machine.ChangeState("PlayerHitState");
     MainManager.Get.gameManager.cameraController.Shake();
     UIManager.Get.hudObject.UpdateHealth((float)currentHitpoints / maxHitpoints);
 }