Пример #1
0
 public void Init(IBlockGoal blockGoal)
 {
     _blockGoal = blockGoal;
     Subscribe();
     SetAmountTextVisability(true);
     SetCompeteIconVisabilbity(false);
     _amount.text = _blockGoal.Amount.ToString();
     _blockSprite.overrideSprite = GameElementSpriteHolder.GetBlockSprite(_blockGoal.Type);
 }
 private void Awake()
 {
     _instance = this;
 }
Пример #3
0
 public void InitCompleted(BlockType blockType)
 {
     OnBlockGoalCompleteHandler(null);
     _blockSprite.overrideSprite = GameElementSpriteHolder.GetBlockSprite(blockType);
 }