private void FixedUpdate() { Vector3 pos = transform.position; if (pos != _storedPosition) { ClientSend.EnemyPosition(pos); _storedPosition = pos; } Vector3 scale = transform.localScale; if (scale != _storedScale) { ClientSend.EnemyScale(scale); _storedScale = scale; } }
private void FixedUpdate() { Vector3 pos = transform.position; if (pos != _storedPosition) { foreach (byte player in SessionManager.Instance.Players.Keys) { ClientSend.EnemyPosition(player, pos, enemyId); } _storedPosition = pos; } Vector3 scale = transform.localScale; if (scale != _storedScale) { foreach (byte player in SessionManager.Instance.Players.Keys) { ClientSend.EnemyScale(player, scale, enemyId); } _storedScale = scale; } }