mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/MI-38.git
synced 2026-01-24 01:25:38 +03:00
22 lines
469 B
C#
22 lines
469 B
C#
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<Manager>();
|
|
if (man.mode == "scedit" || man.mode == "play")
|
|
return;
|
|
|
|
parObject.gameObject.GetComponent<RotateAngle>().OnCollider(countA);
|
|
}
|
|
}
|