예제 #1
0
        public static TrackBullet AddTrackBullet(TrackBulletDescriptor Desc)
        {
            var Obj = CreateBullet(BulletType.Track, Desc.BaseBulletDesc.Position);

            var Entity = new TrackBullet(Obj.transform, Desc);

            BulletList_.Add(Entity);

            return(Entity);
        }
예제 #2
0
        public TrackBullet(Transform Trans, TrackBulletDescriptor Desc)
            : base(Trans, BulletType.Track, Desc.BaseBulletDesc)
        {
            IsMove = false;
            Speed  = Desc.Speed;
            Trans.GetComponent <Animator>().SetTrigger(Desc.ResName);

            Attack(Desc.Target);
            LiteFramework.Game.Audio.AudioManager.PlaySound(new AssetUri("audio/tf_paodan_attack.mp3"));
        }