// Use this for initialization void Start() { current = this; foreach (var player in RtsManager.Current.Players) { if (player.IsAi) { continue; } var pos = player.Location.position; pos.y = maxHeight; pos.z -= 50; transform.position = pos; } }
void Start() { current = this; currentY = transform.position.y; }