private void SetupDicesViews() { // TODO: refactor this DiceView dice1View = Dice1View; m_dice1Controller = dice1View.GetComponent<DiceController>(); m_dice1Controller.Initialize(); dice1View.Initialize(m_dice1Controller); DiceView dice2View = Dice2View; m_dice2Controller = dice2View.GetComponent<DiceController>(); m_dice2Controller.Initialize(); dice2View.Initialize(m_dice2Controller); ThrowDicesView throwDicesView = GameObject.FindObjectOfType<ThrowDicesView>().GetComponent<ThrowDicesView>(); throwDicesView.Initialize(this); }