Синтаксис:
Используется csharp
using UnityEngine;
using System.Collections;
public class play : MonoBehaviour {
public int poz;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
poz = Input.mousePosition;
Debug.DrawLine(transform.position, poz, Color.red);
}
}
using System.Collections;
public class play : MonoBehaviour {
public int poz;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
poz = Input.mousePosition;
Debug.DrawLine(transform.position, poz, Color.red);
}
}
я уже не знаю как сделать...помогите как сделать луч в сторону мышки т.е. от объекте в точку где мышь
Объект----------<(курсор)