SetIdleState() public méthode

public SetIdleState ( ) : void
Résultat void
Exemple #1
0
 public void OnPointerExit(PointerEventData eventData)
 {
     buttonText.fontStyle = FontStyle.Normal;
     StartCoroutine(animator.TriggerAnimation(scaleDown));
     changingTextController.SetIdleState();
     changingText.text = "";
 }
    private void OnButtonClick(BUTTON_SELECTED selected)
    {
        currentBtn = selected;
        switch (selected)
        {
        case BUTTON_SELECTED.LEFT:
            MoveActiveBackground(bgRectTrans, new Vector3(-288f, 0f, 0f));
            rightColorController.SetIdleState();
            leftColorController.SetActiveState();
            break;

        case BUTTON_SELECTED.RIGHT:
            MoveActiveBackground(bgRectTrans, new Vector3(-12f, 0f, 0f));
            leftColorController.SetIdleState();
            rightColorController.SetActiveState();
            break;
        }
    }
 public void OnPointerExit(PointerEventData eventData)
 {
     buttonText.fontStyle = FontStyle.Normal;
     changingTextController.SetIdleState();
     changingText.text = "";
 }