private void UpdateGridGuideHandler(GridGuideType type) { if (type == GridGuideType.All) { FireGrid(); FireGuide(); } }
// Start is called before the first frame update void Awake() { GridOutline.SetActive(false); GridSolid.SetActive(false); GridCircles.SetActive(false); CurrentGuideType = (GridGuideController.GridGuideType)(PlayerPrefs.GetInt(GRID_GUIDE_TYPE, 0)); }
public void SwitchGridGuideType() { CurrentGuideType++; // Debug.Log("Current type "+CurrentGuideType); if ((int)CurrentGuideType >= Enum.GetNames(typeof(GridGuideType)).Length) { CurrentGuideType = 0; } DisplayGridGuide(); }
private void UpdateGridGuideHandler(GridGuideType type) { if (!IsSelected) { return; } if (GridGuideType.Guide == type) { LoadGuides(); } }