123456789101112131415161718192021222324252627282930313233343536373839 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using KairoEngine.Core;
- namespace KairoEngine.CharacterSystem
- {
- public class CharacterUnequipItemAction : IAction
- {
- CharacterController character; // Reference to the character that will move
- // Constructor
- public CharacterUnequipItemAction(CharacterController character)
- {
- this.character = character;
- }
- public void Start()
- {
- if(character.HasEquipedItem())
- {
- GameObject.Destroy(character.GetEquipedGameObject());
- character.SetEquipedItem(null);
- character.SetEquipedGameObject(null);
- character.animator.SetInteger("Mode", 0);
- }
- }
- public void Update() { }
- public void End() { }
- public bool IsDone()
- {
- return true;
- }
- }
- }
|