public void Action(MonoBehaveProxy proxy) { if (this._action != null) { this._actionRunning = true; proxy.StartCoroutine(this._action(this)); } }
public CoroutineStateMachine() { GameObject g = new GameObject("smProxy"); this._proxy = g.AddComponent <MonoBehaveProxy> (); }