Beispiel #1
0
        public void ResetConsideringSelectionTroop(int troop, ETargetSelectionType type)
        {
            Activate(type);

            if (troop > 1)
            {
            }
        }
Beispiel #2
0
        public void Activate(ETargetSelectionType type)
        {
            gameObject.transform.localScale = Vector3.zero;

            if (type == ETargetSelectionType.EmptyLand)
            {
                targetMarker.gameObject.SetActive(false);
                actionControl.gameObject.SetActive(true);
            }
            else if (type == ETargetSelectionType.EnemyLand)
            {
                targetMarker.gameObject.SetActive(true);
                actionControl.gameObject.SetActive(false);
            }

            LeanTween.scale(gameObject, Vector3.one, 0.5f)
            .setEaseInOutElastic();
        }