public virtual void Active(slSnake snake, hwmConstants.ButtonIndex buttonIndex) { m_Snake = snake; m_ButtonIndex = buttonIndex; m_InputButton.EnableButton(m_ButtonIndex); }
public override void Active(slSnake snake, hwmConstants.ButtonIndex buttonIndex) { base.Active(snake, buttonIndex); m_CD = MyProperties.CD; m_EnableSkill = false; CDText.color = Color.white; }
public void EnableButton(hwmConstants.ButtonIndex index) { hwmDebug.Assert(m_Index == hwmConstants.ButtonIndex.Notset, "m_Index == hwmConstants.ButtonIndex.Notset"); hwmSystem.GetInstance().GetInput().GetButton(index).OnGetValueFromUI += OnGetButton; m_Index = index; }
public void DisableButton() { hwmDebug.Assert(m_Index != hwmConstants.ButtonIndex.Notset, "m_Index != hwmConstants.ButtonIndex.Notset"); hwmSystem.GetInstance().GetInput().GetButton(m_Index).OnGetValueFromUI -= OnGetButton; m_Index = hwmConstants.ButtonIndex.Notset; }
public override void Active(slSnake snake, hwmConstants.ButtonIndex buttonIndex) { base.Active(snake, buttonIndex); m_CD = MyProperties.CD; }
public override void Active(slSnake snake, hwmConstants.ButtonIndex buttonIndex) { base.Active(snake, buttonIndex); snake.OnSpeedUpMovement += OnSpeedUpMovement; }
public Button GetButton(hwmConstants.ButtonIndex index) { return(m_Buttons[(int)index]); }