コード例 #1
0
        /// <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
            };
        }
コード例 #2
0
        /// <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);
            }
        }