private void OnViewTypeChanged(Constants.ViewType viewType) { if (viewType == Constants.ViewType.THREE_D) { //for 3d foreach (var thisPlayer in players) { thisPlayer.removedPawnParent3D.gameObject.SetActive(true); thisPlayer.removedPawnParent2D.gameObject.SetActive(false); } } else //for 2d { foreach (var thisPlayer in players) { thisPlayer.removedPawnParent3D.gameObject.SetActive(false); thisPlayer.removedPawnParent2D.gameObject.SetActive(true); } } }
public CustomListViewAdapter(Context c, IList <string> items, Constants.ViewType viewType) { _context = c; _items = items; _typeOfView = viewType; }
private void OnViewTypeChange(Constants.ViewType obj) { rankImage.transform.parent.gameObject.SetActive(!(obj == Constants.ViewType.THREE_D)); }