コード例 #1
0
ファイル: BecomeTrap.cs プロジェクト: anyanlia/KK_BecomeTrap
        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));
        }