Exemplo n.º 1
0
        public override void Configure(PlayerProponent data)
        {
            base.Configure(data);

            Units = Dependancy.Get <ProponentUnitsUI>(gameObject);

            Modules.Configure(this);
        }
        public virtual void Set(PlayerProponent player, UnitTemplate template)
        {
            this.Player   = player;
            this.Template = template;

            price.text = template.Deployment.Cost.ToString("N0");

            template.Icon.ApplyTo(icon);

            UpdateState();
        }