예제 #1
0
    public void Init(PreBattleScenePanel _preBattleScene)
    {
        preBattleScene = _preBattleScene;

        ExitButton = transform.GetChild(1).GetComponent <Button> ();
        ExitButton.onClick.AddListener(Exit);

        AbilityContentsTransform = transform.GetChild(2).GetChild(0).GetChild(0).transform;

        AttackTypeText           = AbilityContentsTransform.GetChild((int)E_ABILITY_TYPE.E_ATTACK_TYPE).GetChild(1).GetChild(0).GetComponent <Text>();
        TribeText                = AbilityContentsTransform.GetChild((int)E_ABILITY_TYPE.E_TRIBE).GetChild(1).GetChild(0).GetComponent <Text>();
        SiteText                 = AbilityContentsTransform.GetChild((int)E_ABILITY_TYPE.E_SITE).GetChild(1).GetChild(0).GetComponent <Text>();
        HpText                   = AbilityContentsTransform.GetChild((int)E_ABILITY_TYPE.E_HP).GetChild(1).GetChild(0).GetComponent <Text>();
        AccuracyText             = AbilityContentsTransform.GetChild((int)E_ABILITY_TYPE.E_ACCURACY).GetChild(1).GetChild(0).GetComponent <Text>();
        AttackRangeText          = AbilityContentsTransform.GetChild((int)E_ABILITY_TYPE.E_ATTACKRANGE).GetChild(1).GetChild(0).GetComponent <Text>();
        PhysicalAttackRatingText = AbilityContentsTransform.GetChild((int)E_ABILITY_TYPE.E_PHYSICAL_ATTACK_RATING).GetChild(1).GetChild(0).GetComponent <Text>();
        MagicAttackRatingText    = AbilityContentsTransform.GetChild((int)E_ABILITY_TYPE.E_MAGIC_ATTACK_RATING).GetChild(1).GetChild(0).GetComponent <Text>();
        AttackSpeedText          = AbilityContentsTransform.GetChild((int)E_ABILITY_TYPE.E_ATTACK_SPEED).GetChild(1).GetChild(0).GetComponent <Text>();
        MoveSpeedText            = AbilityContentsTransform.GetChild((int)E_ABILITY_TYPE.E_MOVE_SPEED).GetChild(1).GetChild(0).GetComponent <Text>();
        PhysicalDefenceText      = AbilityContentsTransform.GetChild((int)E_ABILITY_TYPE.E_PHYSICAL_DEFENCE).GetChild(1).GetChild(0).GetComponent <Text>();
        MagicDefenceText         = AbilityContentsTransform.GetChild((int)E_ABILITY_TYPE.E_MAGIC_DEFENCE).GetChild(1).GetChild(0).GetComponent <Text>();
        DodgeText                = AbilityContentsTransform.GetChild((int)E_ABILITY_TYPE.E_DODGE).GetChild(1).GetChild(0).GetComponent <Text>();
        CriticalRatingText       = AbilityContentsTransform.GetChild((int)E_ABILITY_TYPE.E_CRITICAL_RATING).GetChild(1).GetChild(0).GetComponent <Text>();
        CriticalDamageText       = AbilityContentsTransform.GetChild((int)E_ABILITY_TYPE.E_CRITICAL_DAMAGE).GetChild(1).GetChild(0).GetComponent <Text>();
        PhysicalPenetrateText    = AbilityContentsTransform.GetChild((int)E_ABILITY_TYPE.E_PHYSICAL_PENETRATE).GetChild(1).GetChild(0).GetComponent <Text>();
        MagicPenetrateText       = AbilityContentsTransform.GetChild((int)E_ABILITY_TYPE.E_MAGIC_PENETRATE).GetChild(1).GetChild(0).GetComponent <Text>();
    }
예제 #2
0
    public void SetUp(PreBattleScenePanel _preBattleClass, CharacterStats _charicData)
    {
        charicData     = _charicData;
        preBattleClass = _preBattleClass;

        characterImage.sprite = ObjectCashing.Instance.LoadSpriteFromCache("UI/BoxImages/Character/" + charicData.m_sImage);

        NameText.text  = charicData.m_strCharicName;
        levelText.text = string.Format("Lv.{0}", charicData.m_nEnhace);

        IsBatch(_charicData.m_nBatchIndex != -1);

        Active(false);
    }