/// <summary> /// Unity Method /// </summary> void Start() { _storageSystem = GameObject.FindObjectOfType <StorageSystem>(); selectPanel.Find("FirstBtns/Save").gameObject.SetClick(p => SaveScene()); selectPanel.Find("FirstBtns/SaveIgcs").gameObject.SetClick(p => SaveIgcs()); selectPanel.Find("FirstBtns/Load").gameObject.SetClick(p => LoadScene()); selectPanel.Find("SecondBtns/Restore").gameObject.SetClick(p => RestoreScene()); selectPanel.Find("SecondBtns/Replay").gameObject.SetClick(p => ShowMenu(3)); selectPanel.Find("SecondBtns/Back").gameObject.SetClick(p => ShowMenu(1)); playPanel.Find("Play").gameObject.SetClick(p => ReplayScene()); playPanel.Find("1x").gameObject.SetClick(p => SetPlaySpeed(1)); playPanel.Find("2x").gameObject.SetClick(p => SetPlaySpeed(2)); playPanel.Find("3x").gameObject.SetClick(p => SetPlaySpeed(3)); processSlider = playPanel.Find("processSlider").GetComponent <Slider>(); }
private void Start() { _storageSystem = GameObject.FindObjectOfType <StorageSystem>(); }