Exemplo n.º 1
0
 public void SetParticleLayer()
 {
     if (lightingParticleEffect != null)
     {
         ImageLayerOrder.SetOrderOnParticleSystem(lightingParticleEffect, ImageLayerOrder.GetOrderInt(gameObject));
     }
 }
Exemplo n.º 2
0
    public void SetMyLayer()
    {
        int layerOrder = ImageLayerOrder.GetOrderInt(gameObject);

        //print(mySprites);
        ImageLayerOrder.SetOrderOnSpriteObjectArray(mySprites, layerOrder);
        ImageLayerOrder.SetZ(gameObject);
    }
Exemplo n.º 3
0
    // Use this for initialization
    void Awake()
    {
        int gameObjectLayerOrder = ImageLayerOrder.GetOrderInt(gameObject) - 1;

        ImageLayerOrder.SetOrderOnGameObjectArray(CharacterParts, gameObjectLayerOrder);
        ImageLayerOrder.SetZ(gameObject);
        combatController = GetComponentInChildren <CharCombatController>();
        InitialiseMe();
    }
Exemplo n.º 4
0
 protected void Start()
 {
     ImageLayerOrder.SetOrderOnGameObjectArray(CharacterParts, ImageLayerOrder.GetOrderInt(gameObject) - 1);
     ImageLayerOrder.SetZ(gameObject);
 }
 public void SetMyOrder(GameObject[] characterParts)
 {
     ImageLayerOrder.SetOrderOnGameObjectArray(characterParts, ImageLayerOrder.GetOrderInt(gameObject) - 1);
     ImageLayerOrder.SetZ(character.gameObject);
 }