示例#1
0
 public ActionButtonCreator(ButtonInstantiator buttonInstantiator, GameObject actionButtonPrefab) : base(buttonInstantiator, actionButtonPrefab)
 {
     _buttonColorManager = GameObject.FindObjectOfType <ButtonColorManager>();
 }
示例#2
0
 public DrinkButtonCreator(ButtonInstantiator buttonInstantiator, GameObject drinkPrefab, GameObject beerPrefab) : base(buttonInstantiator, drinkPrefab)
 {
     _drinkPrefab        = drinkPrefab;
     _beerPrefab         = beerPrefab;
     _buttonColorManager = GameObject.FindObjectOfType <ButtonColorManager>();
 }