private void Start() { bindings = Globals.bindings; rect = GetComponent <RectTransform>(); content = transform.GetChild(0).GetChild(0); SpawnButtons(); }
private void Start() { init_mouse_pos = Vector3.zero; scroll_pos = 0; rotation_free = false; pivot_point = Vector3.zero; keys = Globals.bindings; }
private void Start() { control_script = GetComponent <ShipControl>(); UIScript = SceneGlobals.ui_script; ship = control_script.myship; cam = GameObject.Find("ShipCamera").GetComponent <Camera>(); mapcam_mv = SceneGlobals.map_camera.GetComponent <MapCameraMouvement>(); act_thrust = 1; act_angular = 1; Switch_Camera(act_cam_num); keys = Globals.bindings; }
private static void SetDefaults() { LogPath = ""; KeyBindings = new KeyBindingCollection(new PersistentCollection<LuaKeyBinding>(Constants.KeyBindingCollectionSettingName)); CachedFiles = new PersistentCollection<SerializableFileInfo>(Constants.CachedFileCollectionSettingName); FavoritedLocations = new PersistentCollection<string>(Constants.FavoritedLocationsCollectionSettingName); }
/// <summary> /// Initializes a new instance of the <see cref="HotkeyBehavior"/> class. /// </summary> public HotkeyBehavior() { _entries = new KeyBindingCollection(this); _entries.CollectionChanged += OnKeyCollectionChanged; _keysPending = new List<KeyBinding>(); }