SO MUCH SCUFFEDNESS

This commit is contained in:
2023-05-31 15:12:09 -04:00
parent 68a30bb1bd
commit 5847d71676
323 changed files with 573 additions and 78 deletions

View File

@ -23,14 +23,27 @@ namespace FishNet.Demo.NetworkLod
{
//Client should not move these.
if (base.IsClientOnly)
{
return;
}
//Server shouldn't move client one.
if (base.Owner.IsValid)
return;
if (base.IsOwner)
{
}
else
{
}
transform.position = Vector3.MoveTowards(transform.position, _goal, _moveRate * Time.deltaTime);
if (transform.position == _goal)
RandomizeGoal();
///transform.position = Vector3.MoveTowards(transform.position, _goal, _moveRate * Time.deltaTime);
//if (transform.position == _goal)
// RandomizeGoal();
}
public override void OnStartNetwork()