Building city

This commit is contained in:
2022-11-17 23:40:39 +02:00
parent be23c9fa96
commit 18ab6184c4
4651 changed files with 1008304 additions and 3512 deletions
+4 -3
View File
@@ -76,9 +76,10 @@ public class PlayerManager : MonoBehaviour
targetDest.Stop();
if (Physics.Raycast(myRay, out RaycastHit hit))
{
targetDest.transform.position = hit.point;
player.SetDestination(hit.point);
var pos=hit.point;
pos.y += 0.2f;
targetDest.transform.position = pos;
player.SetDestination(pos);
targetDest.Play();
}
}