private void InitSideScrollerOnce() { if (sideScroller != null) { if (sideScroller.Init()) { sideScroller = null; } } }
private void Start() { sideScroller = GetComponent <SideScroller>(); meshRenderer.material.SetColor("_RendererColor", color); }