public void OnEnable() { this.Setup(); InputGroup.Load(); if (!Proxy.IsPlaying()) { return; } this.Validate(); if (this.disabled) { return; } InputProfile.Load(); InputInstance.Load(); Console.AddKeyword("inputShowProfiles", this.ShowProfiles); Console.AddKeyword("inputAssignProfile", this.AssignProfile); Console.AddKeyword("inputCreateProfile", this.CreateProfile); Console.AddKeyword("inputEditProfile", this.EditProfile); Console.AddKeyword("inputRemoveProfile", this.RemoveProfile); Events.Register("On Profile Selected", this); Events.Register("On Profile Edited", this); Events.Add("On Update", this.Update); Events.Add("On Fixed Update", this.FixedUpdate); Events.Add("On GUI", this.OnGUI); this.DetectGamepads(); }
//=============== // Unity //=============== public void Refresh() { if (Proxy.IsEditor()) { InputGroup.Save(); InputGroup.Load(); } }
[ContextMenu("Load Settings")] public void Load() { InputGroup.Load(); }