Ejemplo n.º 1
0
 static void Postfix(ref string ___debugName, ref CharacterUIMeshBase ____characterMesh, ref CharacterState characterState)
 {
     if (___debugName.StartsWith("Character_TrainSteward"))
     {
         OverlayImage = CreateFaceObject(____characterMesh.GetSortingLayer().LayerID());
         (____characterMesh as CharacterUIMeshSpine).OrNull()?.AttachToBone(OverlayImage.transform, VfxAtLoc.Location.BoneStatusEffectSlot1);
     }
 }
Ejemplo n.º 2
0
        static void Postfix(ref CharacterUIMeshBase ____characterMesh, ref int ___TopAllMeshSortingOrder, ref SpriteRenderer ___spriteRenderer)
        {
            CharacterOverlayImage overlayImage = ___spriteRenderer.GetComponentInChildren <CharacterOverlayImage>();

            if (overlayImage != null)
            {
                overlayImage.SetSortingOrder(____characterMesh.GetSortingLayer().LayerID(), ___TopAllMeshSortingOrder);
            }
        }