Exemplo n.º 1
0
        public new PlayerActions OnEnter(PlayerCharacter player)
        {
            player.attacking = true;
            anim             = player.sword.GetComponent <Animator>();
            anim.SetTrigger("SwingSword");

            return(PlayerActions.GetInstance());
        }
Exemplo n.º 2
0
        public PlayerActions OnEnter(PlayerCharacter player)
        {
            timer     = player.hitTime;
            normalMat = Resources.Load("PlayerMat", typeof(Material)) as Material;
            hurtMat   = Resources.Load("PlayerHurtMat", typeof(Material)) as Material;

            return(PlayerActions.GetInstance());
        }
Exemplo n.º 3
0
        public PlayerActions OnEnter(PlayerCharacter player)
        {
            hit = false;

            return(PlayerActions.GetInstance());
        }