private void Awake() { instance = this; _keyControls = new InputKeyControl(); playerAnim = GetComponent <Animator>(); rb = GetComponent <Rigidbody2D>(); col2D = GetComponent <Collider2D>(); moveS = 5f; jumpS = 6f; isHit = false; isLight = false; isMed = false; isHeavy = false; isjumpAttack = false; isCrouch = false; maxH = 40; }
private void ButtonAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { object newObject; var inputKeyControl = new InputKeyControl(); if (WinFormPublic.ShowDialog(inputKeyControl) == DialogReturn.OK) { if (ConfigPublic.CreateNewAddonValue(ListType , true , out newObject)) { DataSetList.Element.AddElementRow(inputKeyControl.KeyValue, newObject); this.GridControlList.RefreshDataSource(); this.BindingSourceList.Position = BindingSourceList.Count - 1; SetControlStatus(); ModifyData(); } } }
private void Awake() { _keyControls = new InputKeyControl(); }