会议分享的代码
https://github.com/roboryantron/Unite2017
接下来主要研究这个代码
1.FloatVariable
第一个场景,核心是 FloatVariable
// ----------------------------------------------------------------------------
// Unite 2017 - Game Architecture with Scriptable Objects
//
// Author: Ryan Hipple
// Date: 10/04/17
// ----------------------------------------------------------------------------
using UnityEngine;
namespace RoboRyanTron.Unite2017.Variables
{
[CreateAssetMenu]
public class FloatVariable : ScriptableObject
{
#if UNITY_EDITOR
[Multiline]
public string DeveloperDescription = "";
#endif
public float Value;
public void SetValue(float value)
{
Value = value;
}
public void SetValue(FloatVariable value)
{
Value = value.Value;
}
public void ApplyChange(float</