Example #1
0
        void Awake()
        {
            _camera  = GetComponent <Camera>();
            uservars = new UserVarManager();
            history  = new Pose[maxHistoryPoses];

            if (startControllerAsset != null)
            {
                startControllerAsset.Load();
                start_controller          = startControllerAsset.controller;
                start_controller.executor = this;
            }

            if (updateControllerAsset != null)
            {
                updateControllerAsset.Load();
                update_controller          = updateControllerAsset.controller;
                update_controller.executor = this;
            }

            user_controllers = new Controller[userControllerAsset.Length];
            for (int i = 0; i < userControllerAsset.Length; ++i)
            {
                userControllerAsset[i].Load();
                user_controllers[i]          = userControllerAsset[i].controller;
                user_controllers[i].executor = this;
            }

            if (OnControllerCreate != null)
            {
                OnControllerCreate(this);
            }
        }
Example #2
0
 public static Transform GetTransform(string name)
 {
     return(UserVarManager.GetTransform(name));
 }
Example #3
0
 public static Var GetGlobalVar(string name)
 {
     return(UserVarManager.GetGlobalVar(name));
 }
Example #4
0
 public static void SetGlobalVar(string name, Var value)
 {
     UserVarManager.SetGlobalVar(name, value);
 }
Example #5
0
 public static void UnsetTransform(string name)
 {
     UserVarManager.UnsetTransform(name);
 }
Example #6
0
 public static void SetTransform(string name, Transform t)
 {
     UserVarManager.SetTransform(name, t);
 }