Open sidebar
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SendInfo : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { bool RMB = Input.GetMouseButtonDown(1); if (RMB) { RaycastHit hit; Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); if (Physics.Raycast(ray, out hit) && hit.transform.tag == "Ground") { this.GetComponent<PhotonView>().RPC("RecievedMove", PhotonTargets.All, hit.point); } } } }
Close sidebar
Back
Please note that all pasted data is publicly available.
X (fomerly Twitter)
GitHub
Use setting
Back
Please note that all pasted data is publicly available.
X (fomerly Twitter)
GitHub
Use setting