void Awake() { if (renderer == null) { renderer = GetComponent <Renderer>(); } initialSortLayer = renderer.sortingOrder; if (gameModule != null) { gameModule.AddRendererSorting(this); } }
void Awake() { if (renderer == null) { renderer = GetComponent <Renderer>(); } initialSortLayer = renderer.sortingOrder; if (gameModule != null) { gameModule.AddRendererSorting(this); } }