Изображение1
изображение2< /p>
Код: Выделить всё
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class launchPoint : MonoBehaviour
{
void Awake()
{
transform launchPointTrans = transform.Find("LaunchPoint");
launchPoint = launchPointTrans.gameObject;
launchPoint.SetActive( false );
}
void OnMouseEnter() {
launchPoint.SetActive( true );
}
void OnMouseExit() {
launchPoint.SetActive( false );
}
}
Подробнее здесь: https://stackoverflow.com/questions/784 ... unch-point