Exemple #1
0
 public void Send(Node.Invoker parent)
 {
     parent.GetActor <ActorTwo.Invoker>("main/two").ContinueWith(task =>
     {
         Debug.Log($"Actor found: {task.Result}");
         task.Result.DisplayMessage();
     });
 }
Exemple #2
0
        public async void Restart(Node.Invoker parent)
        {
            var actor = await parent.GetActor <ActorOne.Invoker>("main/one");

            await Task.Delay(1000);

            Debug.Log($"Restart: {actor}");

            for (int i = 0; i != BehaviorTest.Count + 1; i++)
            {
                actor.SumInvoke(i, 15);
            }
        }
Exemple #3
0
        public async void SendTwo(Node.Invoker parent)
        {
            var actor = await parent.GetActor <ActorTwo.Invoker>("main/two");

            actor.DisplayMessage();
        }