예제 #1
0
 protected override void OnCallback(Wrapper.CallbackType type, Wrapper.CallbackState args)
 {
     switch (args.MeshSate.Type)
     {
     case Wrapper.MeshStateType.Created:
         OnMeshUpdated(args.MeshSate);
         break;
     }
 }
        private void OnStateChanged(Wrapper.CallbackState args)
        {
            switch (args.Type)
            {
            case Wrapper.CallbackType.Failed:
                OnFailed(args.FailState);
                break;

            default:
                OnCallback(args.Type, args);
                break;
            }
        }
 protected abstract void OnCallback(Wrapper.CallbackType type, Wrapper.CallbackState args);