Exemplo n.º 1
0
        public override void Attack()
        {
            BulletController   bc_Bullet = Instantiate <BulletController>(bc_BulletPrefab, tr_ShootPoint.position, tr_ShootPoint.rotation);
            GunStatsController gsc_Stats = GetGunStats();

            bc_Bullet.Initilize(gsc_Stats.fl_Power, gsc_Stats.fl_Damage, gsc_Stats.fl_LifeTime);
        }
Exemplo n.º 2
0
 public GunStatsController GetGunStats()
 {
     if (isc_Stats is GunStatsController)
     {
         return(isc_Stats as GunStatsController);
     }
     else
     {
         GunStatsController gsc_defect = new GunStatsController();
         isc_Stats = gsc_defect;
         return(gsc_defect);
     }
 }