Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using UnityEngine;
using System.Collections;
using Arbor;
* Spriteの色を変更します
// MenuのComponentにメニューを追加する
// 挙動追加のメニューを追加する
// StateBehaviourはMonoBehaviourを継承しているので、UnityのBehaviour機能をそのまま使える
public class ArborChangeSpriteColor : StateBehaviour {
[SerializeField] private SpriteRenderer _SpriteRenderer;
[SerializeField] private Color _Color;
void Start () {
// Use this for awake state
public override void OnStateAwake() {
// Use this for enter state
public override void OnStateBegin() {
_SpriteRenderer.color = _Color;
// Use this for exit state
public override void OnStateEnd() {
// Update is called once per frame
void Update () {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.