Files
ichni_Official/Assets/Scripts/Game/GameElements/TemporaryObject.cs

22 lines
804 B
C#
Raw Normal View History

2025-06-03 02:42:28 -04:00
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Ichni.RhythmGame
{
public class TemporaryObject : SubstantialObject
{
public static TemporaryObject GenerateElement(string elementName, Guid id, List<string> tags,
bool isFirstGenerated, GameElement parentElement)
{
TemporaryObject tempObj = Instantiate(GameManager.instance.basePrefabs.emptyObject)
.AddComponent<TemporaryObject>();
tempObj.Initialize(elementName, id, tags, isFirstGenerated, parentElement);
tempObj.themeBundleName = string.Empty;
tempObj.objectName = string.Empty;
Debug.LogError("This TemporaryObject should not exist.");
return tempObj;
}
}
}