Ejemplo n.º 1
0
        public override void Initialize()
        {
            ModHooks.ModLog("Blackmoth initializing!");

            ModHooks.Instance.AttackHook      += SetNailDamage;
            ModHooks.Instance.DashVectorHook  += CalculateDashVelocity;
            ModHooks.Instance.DashPressedHook += CheckForDash;

            ModHooks.ModLog("Blackmoth initialized!");
        }
Ejemplo n.º 2
0
 public void dataDump(GameObject go, int depth)
 {
     ModHooks.ModLog(new String('-', depth) + go.name);
     foreach (Component comp in go.GetComponents <Component>())
     {
         ModHooks.ModLog(new String('_', depth) + comp.GetType().ToString());
     }
     foreach (Transform child in go.transform)
     {
         dataDump(child.gameObject, depth + 1);
     }
 }