public override void RoomObjectInit(RoomLogic.RoomDriver roomDriver, RoomLogic.ConditionBehaviour conditionScript) { //roomDriver.OnRoomActivated.AddListener(OnRoomActivated); Core.Instance.Rooms.OnRoomActivated.AddListener(OnRoomActivated); roomDriver.OnRoomUpdate.AddListener(RoomUpdate); }
private void Start() { RoomDriver drv = GetComponent <RoomDriver>(); if (!drv) { Debug.LogError($"RoomGroups in {name} couldn't find the RoomDriver"); } drv.OnRoomClear.AddListener(OnRoomClear); drv.OnRoomFail.AddListener(OnRoomFail); drv.OnRoomParTimeOut.AddListener(OnRoomParTimeOut); }
abstract public void RoomObjectInit(RoomDriver roomDriver, ConditionBehaviour conditionScript);