示例#1
0
文件: Acter.cs 项目: sso0632/NDG
 protected void MoveAni()
 {
     AniFuction = null;
     ActerAni.SetBool("walk", true);
     ActerAni.SetBool("idle", false);
     AniFuction = MoveAni;
 }
示例#2
0
文件: Acter.cs 项目: sso0632/NDG
    protected void HitAni()
    {
        AniFuction = null;
        ActerAni.SetTrigger("hit");

        if (haveCharacter.Life == DeadorLive.DEAD)
        {
            Dead();
            if (this.GetType() == typeof(MonsterActor))
            {
                PlayerManager.instance.HuntCountUp();
                UIWarManager.instance.SetScore(PlayerManager.instance.SCORE);
            }
        }
    }
示例#3
0
    void decisionAct()
    {
        switch (homeactkind)
        {
        case HomeActNum.RightWalk:
            right();
            MoveAni();
            HomeMoveFuction = HomeMove;
            break;

        case HomeActNum.LeftWalk:
            Left();
            MoveAni();
            HomeMoveFuction = HomeMove;
            break;

        case HomeActNum.Idle:
            IdleAni();
            HomeMoveFuction = null;
            break;
        }
    }
示例#4
0
文件: Acter.cs 项目: sso0632/NDG
 protected void AttackAni()
 {
     AniFuction = null;
     ActerAni.SetTrigger("attack");
 }
示例#5
0
文件: Acter.cs 项目: sso0632/NDG
 protected void FireAni()
 {
     AniFuction = null;
     ActerAni.SetTrigger("fire");
 }
示例#6
0
 public void SetButtonAcitve(voiddelgate fuction)
 {
     ButtonAcitve = fuction;
 }