using System; using System.Collections.Generic; using UnityEngine; namespace coa4u { /// /// Prints a message in Unity debug console. /// class ActionLog : ActionInstant { string message; public ActionLog(string tgtMessage) : base() { message = tgtMessage; } /// /// Returns a copy of the action. /// public override ActionInstant clone() { return new ActionLog(message); } /// /// Returns the reversed version of the action, if it is possible. /// public override ActionInstant reverse() { return new ActionLog(message); } /// /// This method is called at the action start. /// public override void start() { base.start(); Debug.Log(message); } } }