Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created June 29, 2025 05:44
Show Gist options
  • Select an option

  • Save todorok1/828c21aca44fc1f58be500cda028c6da to your computer and use it in GitHub Desktop.

Select an option

Save todorok1/828c21aca44fc1f58be500cda028c6da to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第87回 条件とイベントの画像の対応を保持するクラス
using System.Collections.Generic;
using UnityEngine;
namespace SimpleRpg
{
/// <summary>
/// 条件とイベントの画像の対応を保持するクラスです。
/// </summary>
public class EventGraphicRecord : MonoBehaviour
{
/// <summary>
/// 対応する画像やアニメーターを表示するイベントページです。
/// </summary>
public List<EventPage> eventPages;
/// <summary>
/// 条件に対応する画像です。
/// </summary>
public Sprite sprite;
/// <summary>
/// 条件に対応するアニメーターです。
/// </summary>
public RuntimeAnimatorController animatorController;
/// <summary>
/// アニメーターを止めるかどうかのフラグです。
/// </summary>
public bool isStopAnimator;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment