Exemple #1
0
        void SetToChosenHero()
        {
            Hero hero = UnitCreator.FindUnitPrefabByName(Global.instance.armySavingManager.currentSave.heroPrefabPath).GetComponent <Hero>();

            OnHeroChoice(hero.avatarTransparent);
            UnitStatShower.UpdateUnitInfo(hero);
            pedestal.ShowUnit(hero.gameObject);
        }
 public void OnPointerEnter(PointerEventData eventData)
 {
     UnitStatShower.UpdateUnitInfo(myUnit.prefab.GetComponent <Unit>());
     pedestal.ShowUnit(myUnit.prefab);
 }