Exemple #1
0
 static void Prefix(BuilderTool __instance)
 {
     if (__instance.isDrawn && !Builder.isPlacing && AvatarInputHandler.main.IsEnabled() && GameUtils.getTarget(10f) is GameObject go)
     {
         DebrisPatcher.processObject(go);
     }
 }
Exemple #2
0
        static void Prefix(BuilderTool __instance)
        {
            if (__instance.isDrawn && !Builder.isPlacing && AvatarInputHandler.main.IsEnabled())
            {
                Targeting.GetTarget(Player.main.gameObject, 10f, out GameObject go, out float num, null);

                if (go)
                {
                    DebrisPatcher.processObject(go);
                }
            }
        }