Exemplo n.º 1
0
 public void End(CSGameRoleBase role, BehaviorState nextState)
 {
     if (mDelEnd != null)
     {
         mDelEnd(role, nextState);
     }
 }
Exemplo n.º 2
0
 public void Start(CSGameRoleBase role, BehaviorState lastState)
 {
     if (mDelStart != null)
     {
         mDelStart(role, lastState);
     }
 }
Exemplo n.º 3
0
    public int Update(CSGameRoleBase role)
    {
        if (mDelUpdate != null)
        {
            return(mDelUpdate(role));
        }

        return(mnBehavior);
    }
Exemplo n.º 4
0
 public FSMState(CSGameRoleBase roleBase)
 {
     Role = roleBase;
 }