예제 #1
0
파일: ViRoute.cs 프로젝트: xubingyue/def
    public static void Test()
    {
        Listener listener = new Listener();
        ViRoute  route    = new ViRoute();

        route.Append(new ViVector3(10, 0, 0));
        route.Append(new ViVector3(20, 0, 0));
        route.Append(new ViVector3(10, 0, 0), 1);
        route.Start(new ViVector3(0, 0, 0));
        float len = route.Length();

        route.EndCallbackList.Attach(listener._endCallbackNode, listener.OnEnd);
        float time = 0.0f;

        while (time < 10.0f)
        {
            route.OnTick(0.3f, 10.0f);
            time += 0.3f;
            ViAsynCallback.Update();
        }
    }
예제 #2
0
 public void Attach(ViAsynCallback <T0> node, ViAsynCallback <T0> .Callback dele)
 {
     node.Attach(dele, _eventList);
 }