コード例 #1
0
ファイル: C_CREATETOWER.cs プロジェクト: mindonghwi/DIY
 // Use this for initialization
 void Start()
 {
     m_cLoadItem = new C_LOADITEM();
     m_cLoadItem.init();
     m_cLoadAura = new C_LOADAURA();
     m_cLoadAura.init();
     m_cLoadBullet = new C_LOADBULLET();
     m_cLoadBullet.init();
 }
コード例 #2
0
    // Use this for initialization
    void Awake()
    {
        m_cLoadAura   = new C_LOADAURA();
        m_cLoadBullet = new C_LOADBULLET();
        m_cLoadEffect = new C_LOADEFFECT();
        m_cLoadItem   = new C_LOADITEM();
        m_cLoadNode   = new C_LOADNODE();


        m_cLoadAura.init();
        m_cLoadBullet.init();
        m_cLoadEffect.init();
        m_cLoadItem.init();
        m_cLoadNode.load();
    }
コード例 #3
0
    void Start()
    {
        m_cLoadItem = new C_LOADITEM();
        m_cLoadItem.init();

        m_goCharacter = Instantiate((GameObject)Resources.Load("Tower/Custom/customizingTower"));
        m_goCharacter.transform.Translate(new Vector3(0.0f, -1.0f, 0.0f));
        m_mtrCharacterMaterial = m_goCharacter.transform.GetChild(1).gameObject.GetComponent <Renderer>();
        m_goCharacter.tag      = "CustomTower";
        m_goCharacter.SetActive(false);

        m_goHand = m_goCharacter.transform.GetChild(0).GetChild(1).GetChild(0).GetChild(2).GetChild(0).GetChild(2).GetChild(0).GetChild(0).GetChild(0).GetChild(0).gameObject;
        m_goFace = m_goCharacter.transform.GetChild(0).GetChild(1).GetChild(0).GetChild(2).GetChild(0).GetChild(0).GetChild(1).gameObject;
        m_goHair = m_goCharacter.transform.GetChild(0).GetChild(1).GetChild(0).GetChild(2).GetChild(0).GetChild(0).GetChild(2).gameObject;

        m_nHairItemNumber               = -1;
        m_nHandItemNumber               = -1;
        m_nFaceItemNumber               = -1;
        m_nMaterielNumber               = 0;
        m_nHairMaterielNumber           = -1;
        m_mtrCharacterMaterial.material = m_cLoadItem.getLoadMaterial(m_nMaterielNumber);
    }