/// <summary> /// Override this to do stuffs when equip items changes /// </summary> /// <param name="operation"></param> /// <param name="index"></param> protected virtual void OnEquipItemsOperation(LiteNetLibSyncList.Operation operation, int index) { if (CharacterModel != null) { CharacterModel.SetEquipItems(equipItems); } equipItemsRecachingState = new SyncListRecachingState() { isRecaching = true, operation = operation, index = index }; }
/// <summary> /// Override this to do stuffs when equip items changes /// </summary> /// <param name="operation"></param> /// <param name="index"></param> protected virtual void OnEquipItemsOperation(LiteNetLibSyncList.Operation operation, int index) { isRecaching = true; if (CharacterModel != null) { CharacterModel.SetEquipItems(equipItems); } if (onEquipItemsOperation != null) { onEquipItemsOperation.Invoke(operation, index); } }