// 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(); }
// 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(); }
void Start() { m_cLoadAura = new C_LOADAURA(); m_cLoadAura.init(); m_cLoadBullet = new C_LOADBULLET(); m_cLoadBullet.init(); m_goAura = new GameObject(); m_goAura.name = "Aura"; m_goBullet = new GameObject(); m_goBullet.name = "Bullet"; m_goTmpBullet = Instantiate(m_cLoadBullet.getBullet(0), new Vector3(0.0f, 0.0f, 0.0f), Quaternion.Euler(-90.0f, 0.0f, 0.0f)); m_goTmpBullet.transform.parent = m_goBullet.transform; m_goTmpAura = Instantiate(m_cLoadAura.getTowerAuraEffect(C_LOADAURA.E_AURAEFFECT.E_ARCANE), new Vector3(0.0f, 0.0f, 0.3f), Quaternion.Euler(-90.0f, 0.0f, 0.0f)) as GameObject; m_goTmpAura.transform.parent = m_goAura.transform; m_eAura = C_LOADAURA.E_AURAEFFECT.E_ARCANE; m_nBulletNum = 0; }
void Start() { m_cLoadData = GameObject.Find("LoadData").GetComponent <C_LOADDATA>(); m_cLoadBullet = new C_LOADBULLET(); m_cLoadBullet.init(); m_cLoadAura = new C_LOADAURA(); m_cLoadAura.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_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 = m_cLoadData.getLoadItem().getHairMaterialCustom(); m_goAura = new GameObject(); m_goAura.name = "Aura"; m_goBullet = new GameObject(); m_goBullet.name = "Bullet"; m_nAuraNum = (int)C_LOADAURA.E_AURAEFFECT.E_ARCANE; m_nBulletNum = 0; m_goTmpBullet = Instantiate(m_cLoadBullet.getBullet(m_nBulletNum), m_goCharacter.transform.position + new Vector3(3.0f, 1.0f, 0.0f), Quaternion.Euler(-90.0f, 0.0f, 0.0f)); m_goTmpBullet.transform.parent = m_goBullet.transform; m_goTmpAura = Instantiate(m_cLoadAura.getTowerAuraEffect((C_LOADAURA.E_AURAEFFECT)m_nAuraNum), m_goCharacter.transform.position, Quaternion.Euler(-90.0f, 0.0f, 0.0f)) as GameObject; m_goTmpAura.transform.parent = m_goAura.transform; m_nHairColorNum = 0; m_nBulletColor = 0; }