PlayerActionProxy.cs 596 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using UnityEngine;
  3. public class PlayerActionProxy : ControllerProxyBase<PlayerActionController>
  4. {
  5. public void ChangeState(PlayerAction.StateEnum nextState)
  6. {
  7. base.effect.ChangeState(nextState);
  8. }
  9. public void TurnRound(int dir)
  10. {
  11. base.effect.TurnRound(dir);
  12. }
  13. public void StartMove()
  14. {
  15. base.effect.StartMove();
  16. }
  17. public void StopMove()
  18. {
  19. base.effect.StopMove();
  20. }
  21. private void Update()
  22. {
  23. base.effect.openPos = this.openPos;
  24. base.effect.position = this.position;
  25. }
  26. public Vector3 position;
  27. public bool openPos;
  28. }