選択できるのは25トピックまでです。
トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
このリポジトリはアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュや、課題・プルリクエストのオープンはできません。
|
- using System;
- using System.Collections.Generic;
- using UnityEngine;
-
- namespace coa4u
- {
- /// <summary>
- /// Prints a message in Unity debug console.
- /// </summary>
- [System.Serializable]
- class ActionLog : ActionInstant
- {
- public string message;
-
- public ActionLog(string targetMessage)
- : base()
- {
- message = targetMessage;
- }
-
- public override ActionInstant Clone()
- {
- return new ActionLog(message);
- }
-
- /// <summary>
- /// Returns the reversed version of the action, if it is possible.
- /// </summary>
- public override ActionInstant Reverse()
- {
- return new ActionLog(message);
- }
-
- public override void Start()
- {
- base.Start();
- Debug.Log(message);
- }
- }
- }
|