Exemplo n.º 1
0
    private void OnSelectTechnology(AgeTransform selectTechnology)
    {
        Rect rect;

        selectTechnology.ComputeGlobalPosition(out rect);
        this.FocusCircle.X       = rect.x + 0.5f * rect.width - 0.5f * this.FocusCircle.Width - this.ResearchView.X;
        this.FocusCircle.Y       = rect.y + 0.5f * rect.height - 0.5f * this.FocusCircle.Height - this.ResearchView.Y;
        this.FocusCircle.Visible = true;
        this.FocusCircle.StartAllModifiers(true, false);
        base.StartCoroutine(this.FadeCircle());
    }