void Awake() { SceneDoor.currentDoors.Add(this); if (string.IsNullOrEmpty(this._correspondingDoor)) { this._correspondingDoor = base.name; } if (!this._markerOnly) { this.betterCollider = PhysicsUtility.RegisterColliderEvents(base.gameObject, this); } SceneDoor.OnAwakeFunc onAwakeFunc; if (SceneDoor.awakeListeners.TryGetValue(base.name, out onAwakeFunc)) { this.exited = false; SceneDoor.awakeListeners.Clear(); if (onAwakeFunc != null) { onAwakeFunc(this); } } }