예제 #1
0
    public void Update()
    {
        //movement with the player

        miniMapAnchor.transform.localPosition = new Vector3(-PhotonRPCLinks.getSingleton().crewMemberGO.transform.position.x,
                                                            0,
                                                            -PhotonRPCLinks.getSingleton().crewMemberGO.transform.position.z);

        //rotation with the player
        miniMapAnchor.transform.localRotation = Quaternion.Euler(new Vector3(0, PhotonRPCLinks.getSingleton().crewMemberGO.transform.rotation.eulerAngles.y + 90.0f, 0)); // the math is only making sense in my head a little bit right now. Dan tired.
    }
예제 #2
0
 // Start is called before the first frame update
 void Start()
 {
     if (!singleton)
     {
         singleton = this;
     }
     else
     {
         Debug.LogError("PhotonRPCLinks DUPLICATE SINGLETONS ATTEMPTED!");
     }
     lineRenderers = new Stack <LineRenderer>();
 }