22 lines
804 B
C#
22 lines
804 B
C#
|
|
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;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|