/// <summary> /// Override this to do stuffs when buffs changes /// </summary> /// <param name="operation"></param> /// <param name="index"></param> protected virtual void OnBuffsOperation(LiteNetLibSyncList.Operation operation, int index) { if (CharacterModel != null) { CharacterModel.SetBuffs(buffs); } buffsRecachingState = new SyncListRecachingState() { isRecaching = true, operation = operation, index = index }; }
/// <summary> /// Override this to do stuffs when buffs changes /// </summary> /// <param name="operation"></param> /// <param name="index"></param> protected virtual void OnBuffsOperation(LiteNetLibSyncList.Operation operation, int index) { isRecaching = true; if (CharacterModel != null) { CharacterModel.SetBuffs(buffs); } if (onBuffsOperation != null) { onBuffsOperation.Invoke(operation, index); } }