Пример #1
0
    // 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;
        }
    }
Пример #2
0
 void Start()
 {
     current  = this;
     currentY = transform.position.y;
 }