示例#1
0
文件: Weapon.cs 项目: fippan/Fish
 protected virtual void Start()
 {
     bulletTrace        = GetComponent <BulletTrace>();
     weaponAudioManager = GetComponent <WeaponAudioManager>();
     anim = GetComponent <Animator>();
     if (magPrefab != null)
     {
         currentMag = Instantiate(magPrefab, magPoint);
     }
     spreadingBulletsEnabled = spreadingBullets;
 }
示例#2
0
 private void Awake()
 {
     animator     = transform.GetComponent <Animator>();
     audioManager = transform.GetComponent <WeaponAudioManager>();
 }