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; }
public void InitCompleted(BlockType blockType) { OnBlockGoalCompleteHandler(null); _blockSprite.overrideSprite = GameElementSpriteHolder.GetBlockSprite(blockType); }