예제 #1
0
        // Use this for initialization
        void Start()
        {
            elroy = PersistentEngine.player.transform;

            AddSprite(transform);

            if (sortingLayerNameInFrontOfElroy == "")
            {
                sortingLayerNameInFrontOfElroy = WalkBehind.GetSortingLayerNameById(sortingLayerInFrontOfElroy);
            }
        }
예제 #2
0
        void Start()
        {
            elroy  = PersistentEngine.player.transform;
            sprite = GetComponent <SpriteRenderer>();

            originalSortingLayerName = sprite.sortingLayerName;

            if (sortingLayerNameInFrontOfElroy == "")
            {
                sortingLayerNameInFrontOfElroy = WalkBehind.GetSortingLayerNameById(sortingLayerInFrontOfElroy);
            }
        }
예제 #3
0
파일: WalkBehind.cs 프로젝트: tadej/enkidu
        IEnumerator Start()
        {
            yield return(null);

            flipYCoordinate = PersistentEngine.scene.flipYCoordinate;
            sprite          = GetComponent <SpriteRenderer>();

            originalSortingLayerName = sprite.sortingLayerName;
            originalSortingIndex     = sprite.sortingOrder;
            if (sortingLayerNameInFrontOfElroy == "")
            {
                sortingLayerNameInFrontOfElroy = WalkBehind.GetSortingLayerNameById(sortingLayerInFrontOfElroy);
            }
        }