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 tags, bool isFirstGenerated, string themeBundleName, string objectName, GameElement parentElement, bool isStatic) { EnvironmentObject environmentObject = SubstantialObject.GenerateElement(elementName, id, tags, isFirstGenerated, themeBundleName, objectName, parentElement) .GetComponent(); environmentObject.isStatic = isStatic; environmentObject.gameObject.isStatic = isStatic; return environmentObject; } #endregion } }