Example #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();
     });
 }
Example #2
0
    public virtual void OnAdd(Address address, Node.Invoker parent)
    {
        Executor.Run(async() =>
        {
            if (address.IsEmpty())
            {
                Address = address;
            }

            Parent = parent;
            return(true);
        });
    }
Example #3
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);
            }
        }
Example #4
0
        public async void SendTwo(Node.Invoker parent)
        {
            var actor = await parent.GetActor <ActorTwo.Invoker>("main/two");

            actor.DisplayMessage();
        }