private void Start() { if (!Configuration.DisableForLivCamera) { return; } if (Resources.FindObjectsOfTypeAll <MoveBackWall>().Any()) { Configuration.MoveBackLayer = Resources.FindObjectsOfTypeAll <MoveBackWall>().First().gameObject.layer; } _livWalls = gameObject.AddComponent <LivWalls>(); StartCoroutine(_livWalls.ApplyGameCoreModifications()); }
private void OnDestroy() { _livWalls = null; }