/// <summary> /// Initializes a new instance of the <see cref="AGSSyncableElement"/> class. /// </summary> /// <param name='elementKeyVal'> /// Element key value. /// </param> /// <param name='syncableMethod'> /// Syncable method. /// </param> public AGSSyncableElement(string elementKeyVal, SyncableMethod syncableMethod) : base(elementKeyVal, syncableMethod) { listIndex = null; listOwner = null; InitializeNativeFunctionCalls(); #if !UNITY_EDITOR this.setOwner = null; #endif }
/// <summary> /// Initializes a new instance of the <see cref="AGSSyncableElement"/> class. /// </summary> /// <param name='listOwningThisNumber'> /// List owning this number. /// </param> /// <param name='indexInList'> /// Index in list. /// </param> /// <param name='syncableMethod'> /// Syncable method. /// </param> public AGSSyncableElement(AGSSyncableList listOwningThisNumber, int indexInList, SyncableMethod syncableMethod) : base(null, syncableMethod) { listIndex = indexInList; listOwner = listOwningThisNumber; InitializeNativeFunctionCalls(); #if !UNITY_EDITOR this.setOwner = null; #endif }