示例#1
0
    public void SetMyLayer()
    {
        int layerOrder = ImageLayerOrder.GetOrderInt(gameObject);

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

        ImageLayerOrder.SetOrderOnGameObjectArray(CharacterParts, gameObjectLayerOrder);
        ImageLayerOrder.SetZ(gameObject);
        combatController = GetComponentInChildren <CharCombatController>();
        InitialiseMe();
    }
示例#3
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);
 }