public void InitMovement(DirectionHelper.Directions direction) { head.speed = speed; head.InitMovement(direction); ClientInitMovement(direction); }
public void InitMovement(DirectionHelper.Directions direction) { movementDirection = direction; nextLoc = new Vector2(transform.position.x, transform.position.z); prevLoc = nextLoc; SetNewNextLoc(); if (nextTail != null) { nextTail.InitMovement(direction); } }