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. }
// 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>(); }