コード例 #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);