using System;
using System.Collections.Generic;
using UnityEngine;
namespace coa4u
{
///
/// Prints a message in Unity debug console.
///
[System.Serializable]
class ActionLog : ActionInstant
{
public string message;
public ActionLog(string targetMessage)
: base()
{
message = targetMessage;
}
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);
}
public override void Start()
{
base.Start();
Debug.Log(message);
}
}
}