public override BaseQuestAction Clone()
    {
        QuestActionReplaceEntitySDX questActionSpawnEntity = new QuestActionReplaceEntitySDX();

        base.CopyValues(questActionSpawnEntity);
        questActionSpawnEntity.entityIDs.AddRange(this.entityIDs);
        return(questActionSpawnEntity);
    }
    private IEnumerator SpawnEntities()
    {
        for (int i = 0; i < this.count; i++)
        {
            yield return(new WaitForSeconds(0.5f));

            int spawnKey = this.entityIDs[UnityEngine.Random.Range(0, this.entityIDs.Count)];
            if (Steam.Network.IsServer)
            {
                QuestActionReplaceEntitySDX.SpawnQuestEntity(spawnKey, OwnerQuest.SharedOwnerID, null);
            }
            else
            {
                SingletonMonoBehaviour <ConnectionManager> .Instance.SendToServer(new NetPackageQuestEntitySpawn(spawnKey, -1), false);
            }
        }
        yield break;
    }