using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; using KairoEngine.Core; namespace KairoEngine.CharacterSystem { /// /// Action to move a character in a certain direction and speed. /// public class ZombieIdleAction : IAction { CharacterController character; // Reference to the character that will perform the action int varient; bool done = false; /// /// Action that will make a character play an zombie idle animation. /// /// The CharacterController performing the action. /// Use numbers 1 to 8 for different animations. public ZombieIdleAction(CharacterController character, int varient) { this.character = character; this.varient = varient; } public void Start() { float v = (float)varient; character.animator.SetFloat("ZombieIdleVarient", v); character.animator.SetFloat("vertical", 0); } public void Update() { } public void End() { done = true; } public bool IsDone() { return done; } } }