예제 #1
0
    public override void RoomObjectInit(RoomLogic.RoomDriver roomDriver, RoomLogic.ConditionBehaviour conditionScript)
    {
        //roomDriver.OnRoomActivated.AddListener(OnRoomActivated);
        Core.Instance.Rooms.OnRoomActivated.AddListener(OnRoomActivated);

        roomDriver.OnRoomUpdate.AddListener(RoomUpdate);
    }
예제 #2
0
        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);
        }
예제 #3
0
 abstract public void RoomObjectInit(RoomDriver roomDriver, ConditionBehaviour conditionScript);