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

            return(PlayerActions.GetInstance());
        }
示例#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());
        }
示例#3
0
        public PlayerActions OnEnter(PlayerCharacter player)
        {
            hit = false;

            return(PlayerActions.GetInstance());
        }