void InitBullet(object[] obj)
 {
     this.charRunningData = (CharcterData)obj[0];
     this.target          = (GameObject)obj[1];
     bullet   = charRunningData.perfabSetting.bullet1;
     hitEnemy = new List <GameObject>();
     if (bullet.bulletType == BulletType.PROJECTILE)
     {
         transform.position = target.transform.position;
     }
 }
Exemple #2
0
 public void InitBullet(BulletSetting setting, Vector3 direction)
 {
     force          = setting.Force;
     this.direction = direction;
 }