SO MUCH SCUFFEDNESS
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user