Example #1
0
    public virtual void Active(slSnake snake, hwmConstants.ButtonIndex buttonIndex)
    {
        m_Snake       = snake;
        m_ButtonIndex = buttonIndex;

        m_InputButton.EnableButton(m_ButtonIndex);
    }
Example #2
0
    public override void Active(slSnake snake, hwmConstants.ButtonIndex buttonIndex)
    {
        base.Active(snake, buttonIndex);

        m_CD          = MyProperties.CD;
        m_EnableSkill = false;
        CDText.color  = Color.white;
    }
Example #3
0
 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;
 }
Example #4
0
 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;
 }
Example #5
0
    public override void Active(slSnake snake, hwmConstants.ButtonIndex buttonIndex)
    {
        base.Active(snake, buttonIndex);

        m_CD = MyProperties.CD;
    }
Example #6
0
    public override void Active(slSnake snake, hwmConstants.ButtonIndex buttonIndex)
    {
        base.Active(snake, buttonIndex);

        snake.OnSpeedUpMovement += OnSpeedUpMovement;
    }
Example #7
0
 public Button GetButton(hwmConstants.ButtonIndex index)
 {
     return(m_Buttons[(int)index]);
 }