Building city
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user