Пример #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);
        }
Пример #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);
        }
Пример #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;
        }