예제 #1
0
파일: EffectMgr.cs 프로젝트: zhizhen/thewar
    public IzCommonEffect CreateEffect(string uiType)
    {
        IzCommonEffect kCE;

        kCE = new IzCommonEffect(uiType);
        return(kCE);
    }
예제 #2
0
파일: Bullet.cs 프로젝트: zhizhen/thewar
 private void SetBullet(IzCommonEffect effect)
 {
     if (effect.m_kGO == null || effect.m_kTRS == null)
     {
         return;
     }
     if (_gameObject != null)
     {
         GameObjectExt.Destroy(_gameObject);
     }
     _effect                  = effect;
     _gameObject              = _effect.m_kGO;
     _gameObject.name         = "defaultBullet";
     _transform               = _effect.m_kTRS;
     _transform.localPosition = _pos;
     //_transform.forward = _dir;
     //_gameObject.SetActive(false);
 }