コード例 #1
0
 void Start()
 {
     if (RiskOfOptionsCompat.enabled)
     {
         RiskOfOptionsCompat.readOptions();
     }
 }
コード例 #2
0
        void Awake()
        {
            instance = this;

            log = Logger;

            populateAss();

            if (_hitboxBoxPrefab == null || _hitboxNotBoxPrefabTall == null || _hitboxNotBoxPrefab == null)
            {
                log.LogError($"unable to get a hitboxprefab from the bundle. Timesweeper did an oops | box: {_hitboxBoxPrefab != null}, capsule: {_hitboxNotBoxPrefabTall != null}, sphere: {_hitboxNotBoxPrefab != null}");
                return;
            }

            doConfig();

            if (RiskOfOptionsCompat.enabled)
            {
                RiskOfOptionsCompat.doOptions();
            }
            else
            {
                setDefaultOptions();
            }

            EnigmaticThunder.Modules.CommandHelper.AddToConsoleWhenReady();

            //createPool(hitPoolStart, _revealerPool, false);
            //createPool(blastPoolStart, _blastPool, true);

            On.RoR2.BodyCatalog.Init += BodyCatalog_Init;

            On.RoR2.OverlapAttack.Fire += OverlapAttack_Fire;

            On.RoR2.BlastAttack.Fire += BlastAttack_Fire;

            On.RoR2.HurtBox.Awake += HurtBox_Awake;
        }