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); } }
public static Transform GetTransform(string name) { return(UserVarManager.GetTransform(name)); }
public static Var GetGlobalVar(string name) { return(UserVarManager.GetGlobalVar(name)); }
public static void SetGlobalVar(string name, Var value) { UserVarManager.SetGlobalVar(name, value); }
public static void UnsetTransform(string name) { UserVarManager.UnsetTransform(name); }
public static void SetTransform(string name, Transform t) { UserVarManager.SetTransform(name, t); }