private void Bang() { var unsay = Sayer.Say(Find.ThePlayer, "Bang!", false); this.BeginSerial() .Wait(2.0f) .Start(() => unsay()); }
public static ITween Say(GameObject subject, string directObject) { var done = false; Action?unsay = null; return(new SerialTweener().Then(() => { unsay = Sayer.Say(subject, directObject, true); Find.SceneState.SetInteraction(new InteractionAction(() => { done = true; }), false); }).While(() => !done).Then(() => unsay?.Invoke())); }
public void DoStuff() { Sayer sayer = SayHello; Console.WriteLine(sayer("James")); }