void Start() { localPlayerTransformControl = FindObjectOfType <Jido_Manager> ().LocalPlayerReference.GetComponent <Jido_Player> (); playerID = transform.parent.name; thisTransformControl = GameObject.Find(playerID).GetComponent <Jido_Player>(); InvokeRepeating("CheckSeen", 1f, 0.3f); }
public void AutoTap(string otherID, Vector3 tapLocalFrame) { Jido_Player otherTC = GameObject.Find(otherID).GetComponent <Jido_Player> (); if (otherTC.GetTap(gameObject, tapLocalFrame, out tapRemoteFrame)) { CmdRemoteTap(otherID, tapLocalFrame, tapRemoteFrame); } }
private void Tap(string otherID, Vector3 tapLocalFrame) { GameObject found = GameObject.Find(otherID); Jido_Player otherTC = found.GetComponent <Jido_Player> (); otherTC.GetTap(gameObject, tapLocalFrame, out tapRemoteFrame); CmdRemoteTap(otherID, tapLocalFrame, tapRemoteFrame); _jidoManager.ShowLookForText(); }
public void RpcRemoteTap(string otherID, Vector3 tapRemote, Vector3 tapLocal) { GameObject otherPlayer = GameObject.Find(otherID); Jido_Player otherTC = otherPlayer.GetComponent <Jido_Player> (); if (!otherTC.isLocalPlayer) { return; } this.tapRemoteFrame = tapRemote; this.tapLocalFrame = tapLocal; tap = true; if (getTap) { InitOrigin(); otherPlayer.GetComponent <PlayerController> ().SetGameStarted(); } }
// Use this for initialization void Start() { playerController = GetComponent <PlayerController> (); transformControl = GetComponent <Jido_Player> (); }