using System.Collections; using System.Collections.Generic; using UnityEngine; public class AngleCollider : MonoBehaviour { public int countA; public GameObject parObject; Manager man; public void OnMouseDown() { man = GameObject.Find("Manager").GetComponent(); if (man.mode == "scedit" || man.mode == "play") return; parObject.gameObject.GetComponent().OnCollider(countA); } }