Esempio n. 1
0
 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);
 }
Esempio n. 2
0
    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);
        }
    }
Esempio n. 3
0
    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();
    }
Esempio n. 4
0
    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();
        }
    }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     playerController = GetComponent <PlayerController> ();
     transformControl = GetComponent <Jido_Player> ();
 }