void Start() { #if DEBUG && UNITY_EDITOR Loader.AutoCreate <CustomCompiler, CustomCpu>("CK", false); #endif try { Machine = Loader.LoadFromResource <CustomCpu>("test"); } catch { Debug.LogError("ロードエラー"); } if (Machine == null) { Debug.LogError("コンパイルエラー"); } else { Debug.Log("Machine作成"); } Machine.Run(); }
void Move(CustomCpu cpu, GameObject target) { var result = cpu.GetResult <Vector3>(); target.transform.localPosition = result; }
void PreAction(CustomCpu _) { }