Added NetworkManager
This commit is contained in:
@@ -207,7 +207,7 @@
|
||||
return nextPosition;
|
||||
}
|
||||
|
||||
private void UpdateAnimator()
|
||||
protected override void UpdateAnimator()
|
||||
{
|
||||
// Debug.Log($"{gameObject} UpdateAnimator with direction {direction}, dead {dead}, frozen {frozen}");
|
||||
if (!gameObject.activeInHierarchy)
|
||||
@@ -316,28 +316,6 @@
|
||||
renderer.enabled = visible;
|
||||
}
|
||||
|
||||
public override Vector2 GetPosition()
|
||||
{
|
||||
return (Vector2)transform.localPosition;
|
||||
}
|
||||
|
||||
public override void SetPosition(Vector2 position)
|
||||
{
|
||||
GridMoverTools.SetPosition(position, transform);
|
||||
}
|
||||
|
||||
public override Vector2 GetDirection()
|
||||
{
|
||||
return direction;
|
||||
}
|
||||
|
||||
public void SetDirection(Vector2 direction)
|
||||
{
|
||||
this.direction = direction;
|
||||
RequestSerialization();
|
||||
UpdateAnimator();
|
||||
}
|
||||
|
||||
public void SetTargetDirection(Vector2 targetDirection)
|
||||
{
|
||||
this.targetDirection = targetDirection;
|
||||
|
||||
Reference in New Issue
Block a user