// Update is called once per frame void Update() { if (functionCallback != null) { functionCallback.Invoke(); functionCallback = null; } }
// Update is called once per frame void Update() { if (functionCallback != null) { functionCallback.Invoke(); functionCallback = null; } for (int i = 0; i < usersSet.Count; i++) { UserData loc = usersSet [i].GetComponent <UserData> (); Vector3 targetPos = new Vector3(DepthToSceneX(loc.depthX), userHeight, DepthToSceneZ(loc.depthY)); SmoothMove(usersSet[i], targetPos); var textScore = usersSet [i].GetComponent <UserChildMethod> ().textScore; var vPos = cameraWalk.WorldToScreenPoint(targetPos) + new Vector3(0, textShift, 0); SmoothMove(textScore.gameObject, vPos); //textScore.transform.position = vPos + new Vector3 (0, -90, 0); } LightSpot.transform.position = View_MapCenter = new Vector3(GetUsersCenter().x, SpotLightheight, GetUsersCenter().z); }