예제 #1
0
        private void Awake()
        {
            if (StudioAPI.InsideStudio)
            {
                return;
            }

            Instance = this;

            CharacterApi.RegisterExtraBehaviour <BecomeTrapController>(GUID);
            BecomeTrapGui.Initialize();
            HarmonyInstance.Create(GUID).PatchAll(typeof(Hooks));
        }
예제 #2
0
        private void Awake()
        {
            Instance = this;
            Logger   = base.Logger;

            if (StudioAPI.InsideStudio)
            {
                return;
            }

            CharacterApi.RegisterExtraBehaviour <BecomeTrapController>(GUID);
            BecomeTrapGui.Initialize();
            Harmony.CreateAndPatchAll(typeof(Hooks));
        }