public override void UpdateText(Assets.PlayerSelectedItemsEventArgs e)
 {
     this.gameObject.transform.GetChild(1).GetComponent <TextMeshProUGUI>().text = e.playerCar.item.GetName();
 }
 public abstract void UpdateText(Assets.PlayerSelectedItemsEventArgs e);
 public void SetAndInstanciatePlayerCarAtStart(object sender, Assets.PlayerSelectedItemsEventArgs e)
 {
     playerCarGameObject = Instantiate(e.playerCar.item.GetCarAsGameObject(), playerCarPosition, Quaternion.identity);
     playerCar           = e.playerCar.item;
 }
Example #4
0
 public void SetNewText(object sender, Assets.PlayerSelectedItemsEventArgs e)
 {
     this.gameObject.GetComponent <UI_UpdateTextBoxInfo_Factory>().UpdateText(e);
 }