예제 #1
0
    // OnStateEnter is called when a transition starts and the state machine starts to evaluate this state
    override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        Misaki chara = animator.GetComponent <Misaki>();

        if (chara != null)
        {
            chara.SetCurrentSpriteByIndex(0);
            chara.isCountDown = true;
        }
    }
예제 #2
0
    // OnStateEnter is called when a transition starts and the state machine starts to evaluate this state
    override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        Misaki chara = animator.GetComponent <Misaki>();

        if (chara != null)
        {
            chara.SetCurrentSpriteByIndex(2);
            chara.SpawnItem();
            chara.Play(1);
        }
    }