public void ShowPhoneCallView(MySmsOrCallVo data) { HideAll(); if (_phoneCallController != null) { _phoneCallController.SetData(data); _phoneCallController.Show(); } else { var view = InstantiateView <PhoneCallView>("Phone/Prefabs/PhoneCallView"); _phoneCallController = new PhoneCallController(); _phoneCallController.View = (PhoneCallView)view; RegisterController(_phoneCallController); _phoneCallController.Start(); _phoneCallController.SetData(data); } HideBackBtn(); }
// Now we can use controllers public void Call() { var callController = new PhoneCallController("Vasya"); }