CharacterRelaxIdleAction.cs 739 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using KairoEngine.Core;
  5. namespace KairoEngine.CharacterSystem
  6. {
  7. public class CharacterRelaxIdleAction : IAction
  8. {
  9. CharacterController character;
  10. // Constructor
  11. public CharacterRelaxIdleAction(CharacterController character)
  12. {
  13. this.character = character;
  14. }
  15. public void Start()
  16. {
  17. character.animator.SetInteger("Mode", 3);
  18. }
  19. public void Update()
  20. {
  21. }
  22. public void End()
  23. {
  24. character.animator.SetInteger("Mode", 0);
  25. }
  26. public bool IsDone()
  27. {
  28. return false;
  29. }
  30. }
  31. }