示例#1
0
 protected STATE_MUTEX mMutexType;               // 该状态是否允许叠加
 public PlayerState()
 {
     mMutexType     = STATE_MUTEX.COEXIST;
     mBuffStateType = BUFF_STATE_TYPE.NONE;
     mActive        = true;
     mStateMaxTime  = -1.0f;
     mStateTime     = -1.0f;
 }
示例#2
0
 public PlayerState()
 {
     mAllowSuperposition = SAME_STATE_OPERATE.SSO_COEXIST;
     mBuffStateType      = BUFF_STATE_TYPE.BST_NONE;
     mActive             = true;
     mStateTime          = -1.0f;
     mMutexID            = 0;
     mID = generateGUID();
 }
示例#3
0
 public override void resetProperty()
 {
     base.resetProperty();
     mOnLeave       = null;
     mPlayer        = null;
     mData          = null;
     mParam         = null;
     mStateMaxTime  = -1.0f;
     mStateTime     = -1.0f;
     mActive        = true;
     mMutexID       = 0;
     mID            = 0;
     mBuffStateType = 0;
     // 此处不能重置互斥类型,此字段一般在子类的构造中进行指定,一旦指定就不会改变,也就不会被重置
     // 如果重置,则在复用后互斥类型就会错误
     //mMutexType = STATE_MUTEX.COEXIST;
     mIgnoreTimeScale = false;
 }