Ejemplo n.º 1
0
        private static void SetupOpponentTeamsHqIcons(HQIconController hqIconController, int iconIndex)
        {
            var hqIconRectTransform = hqIconController.GetComponent <RectTransform>();
            var scaleAdjustment     = 0.897f;

            hqIconRectTransform.anchoredPosition = new Vector3(-15.0f + (-iconIndex * hqIconRectTransform.rect.width * hqIconRectTransform.localScale.x * scaleAdjustment), -11.0f, 0.0f);
        }
Ejemplo n.º 2
0
        private static void SetupSingleOpponentTeamHqIcon(HQIconController hqIconController)
        {
            var hqIconRectTransform = hqIconController.GetComponent <RectTransform>();

            hqIconRectTransform.localScale       = new Vector3(1.5f, 1.5f, 1.0f);
            hqIconRectTransform.anchoredPosition = new Vector3(-6.0f, -5.0f, 0.0f);
        }
Ejemplo n.º 3
0
        private static void SetupPlayerHqIcon(HQIconController hqIconController)
        {
            var hqIconRectTransform = hqIconController.GetComponent <RectTransform>();

            hqIconRectTransform.localScale       = new Vector3(1.5f, 1.5f, 1.0f);
            hqIconRectTransform.anchorMin        = new Vector2(0.0f, 1.0f);
            hqIconRectTransform.anchorMax        = new Vector2(0.0f, 1.0f);
            hqIconRectTransform.pivot            = new Vector2(0.0f, 1.0f);
            hqIconRectTransform.anchoredPosition = Vector3.zero;
        }