public void Send(Node.Invoker parent) { parent.GetActor <ActorTwo.Invoker>("main/two").ContinueWith(task => { Debug.Log($"Actor found: {task.Result}"); task.Result.DisplayMessage(); }); }
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); } }
public async void SendTwo(Node.Invoker parent) { var actor = await parent.GetActor <ActorTwo.Invoker>("main/two"); actor.DisplayMessage(); }