private void Update() { if (activeEnv == null) { var env = EnvironmentSystem.GetOrAlloc().defaultEnvironment; SetEnvironment(env); } }
/// <summary> /// 注册 /// </summary> protected virtual void OnEnable() { EnvironmentSystem.GetOrAlloc().Register(this); }