コード例 #1
0
 private void Start()
 {
     bindings = Globals.bindings;
     rect     = GetComponent <RectTransform>();
     content  = transform.GetChild(0).GetChild(0);
     SpawnButtons();
 }
コード例 #2
0
 private void Start()
 {
     init_mouse_pos = Vector3.zero;
     scroll_pos     = 0;
     rotation_free  = false;
     pivot_point    = Vector3.zero;
     keys           = Globals.bindings;
 }
コード例 #3
0
    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;
    }
コード例 #4
0
ファイル: ArgsAndSettings.cs プロジェクト: Visic/NotepadSharp
 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);
 }
コード例 #5
0
 /// <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>();
 }