32 lines
1.0 KiB
C#
32 lines
1.0 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Ichni.RhythmGame.Beatmap;
|
|
using Lean.Pool;
|
|
using UnityEngine;
|
|
|
|
namespace Ichni.RhythmGame
|
|
{
|
|
public partial class EnvironmentObject : SubstantialObject
|
|
{
|
|
#region [标记参数] Flags
|
|
public bool isStatic;
|
|
#endregion
|
|
|
|
#region [生命周期] Lifecycle & Factory
|
|
public static EnvironmentObject GenerateElement(string elementName, Guid id, List<string> tags,
|
|
bool isFirstGenerated, string themeBundleName, string objectName, GameElement parentElement, bool isStatic)
|
|
{
|
|
EnvironmentObject environmentObject =
|
|
SubstantialObject.GenerateElement(elementName, id, tags, isFirstGenerated, themeBundleName, objectName, parentElement)
|
|
.GetComponent<EnvironmentObject>();
|
|
|
|
environmentObject.isStatic = isStatic;
|
|
environmentObject.gameObject.isStatic = isStatic;
|
|
|
|
return environmentObject;
|
|
}
|
|
#endregion
|
|
}
|
|
|
|
} |