Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.IO;
- using UnityEngine;
- namespace meta
- {
- public class Mod : MonoBehaviour
- {
- void Start() {
- }
- void Update ()
- {
- if (Input.GetKeyDown ("p")) {
- /**foreach (Transform Ghost in FindObjectOfType<AddPiece> ().ghosts) {
- Ghost.collider.enabled = false;
- }**/
- /**
- foreach (MyBlockInfo Block in FindObjectsOfType<MyBlockInfo>() as MyBlockInfo[]) {
- try {
- Block.GetComponentInChildren<MeshCollider> ().isTrigger = true;
- } catch {
- }
- try {
- Block.GetComponentInChildren<Collider> ().isTrigger = true;
- } catch {
- }
- }**/
- }
- //Debug.Log(FindObjectOfType<GhostTrigger>().gameObject.name);
- foreach (GhostTrigger Ghost in FindObjectsOfType<GhostTrigger>() as GhostTrigger[]) {
- //Ghost.touchingCount=0;
- Ghost.OnDisable();
- //Debug.Log(Ghost.name+"'s touching count is: "+ Ghost.touchingCount.ToString());
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement