public void SetBindings(bool isInit) { foreach (var binding in BindingHelpers.IterateComponents <AbstractMemberBinding>(gameObject)) { if (isInit) { binding.Init(); } else { binding.ResetBinding(); } } if (!isInit) { viewModel = null; } }
public void SetBindings(bool isInit) { foreach (var binding in BindingHelpers.IterateComponents <AbstractMemberBinding>(gameObject)) { if (isInit) { binding.Init(); } else { binding.ResetBinding(); } } if (!isInit) { viewModel = null; } }