Beispiel #1
0
    public override void ChildInit()
    {
        m_WeaponTrailObj = GameObject.FindGameObjectWithTag("WeaponTrail");
        m_RevivalPos     = GameObject.FindGameObjectWithTag("Revival").transform;

        m_DieGrey = FindObjectOfType <GreyEffectShader>();

        m_joyStickMove     = FindObjectOfType <JoyStickMove>();
        m_joyStickAttack   = FindObjectOfType <JoyStickAttack>();
        m_joyStickRotate   = FindObjectOfType <JoyStickRotate>();
        m_InstallEquipment = FindObjectOfType <InstallEquipment>();

        m_PlayerAbility.Init();
        m_Bodybounds.center = m_Pivot.transform.position;

        JobInit();
    }
Beispiel #2
0
    public void Init(List <GameObject> LisPortion)
    {
        for (int i = 0; i < m_PortionSprite.Length; ++i)
        {
            m_DicName.Add(m_PortionSprite[i], DataMng.Get(TableType.PortionTable).ToS(i + 1, "NAME"));
            m_DicContent.Add(m_PortionSprite[i], DataMng.Get(TableType.PortionTable).ToS(i + 1, "Content"));
            m_DicMoney.Add(m_PortionSprite[i], DataMng.Get(TableType.PortionTable).ToI(i + 1, "Money"));

            m_DicObj.Add(m_PortionSprite[i], LisPortion[i]);
        }
        for (int i = 0; i < m_PortionImg.Length; ++i)
        {
            m_PortionImg[i].sprite = m_PortionSprite[i];
            m_NameTxt[i].text      = m_DicName[m_PortionSprite[i]];
            m_ContentTxt[i].text   = m_DicContent[m_PortionSprite[i]];
            m_MoneyTxt[i].text     = m_DicMoney[m_PortionSprite[i]].ToString();
        }
        m_nAllSolt = (int)(m_PortionSprite.Length / 4.0f);

        m_InstallEquipment = FindObjectOfType <InstallEquipment>();
        gameObject.SetActive(false);
    }
Beispiel #3
0
 private void Start()
 {
     m_Inventory          = FindObjectOfType <Inventory>();
     m_InstallEquipment   = FindObjectOfType <InstallEquipment>();
     m_InventoryCharacter = FindObjectOfType <InterfaceCharacter>();
 }