示例#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
        IEnumerator Start()
        {
            yield return(null);

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

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