예제 #1
0
    void Awake()
    {
        if (renderer == null)
        {
            renderer = GetComponent <Renderer>();
        }
        initialSortLayer = renderer.sortingOrder;

        if (gameModule != null)
        {
            gameModule.AddRendererSorting(this);
        }
    }