Exemplo n.º 1
0
        private void Bang()
        {
            var unsay = Sayer.Say(Find.ThePlayer, "Bang!", false);

            this.BeginSerial()
            .Wait(2.0f)
            .Start(() => unsay());
        }
Exemplo n.º 2
0
        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()));
        }
Exemplo n.º 3
0
        public void DoStuff()
        {
            Sayer sayer = SayHello;

            Console.WriteLine(sayer("James"));
        }