Exemplo n.º 1
0
 public void setWeapon(BaseWeapon newWeapon)
 {
     CurWeapon = newWeapon;
     //Debug.Log (newWeapon);
     CurWeapon.AttachWeapon(weaponSlot, weaponOffset, Quaternion.Euler(weaponRotatorOffset), this);
 }
Exemplo n.º 2
0
 //Setting new weapon if not null try to attach it
 public void setWeapon(BaseWeapon newWeapon)
 {
     CurWeapon = newWeapon;
     //Debug.Log (newWeapon);
     if(CurWeapon!=null){
         CurWeapon.AttachWeapon(weaponSlot,weaponOffset,Quaternion.Euler (weaponRotatorOffset),this);
         if(animator!=null){
             animator.SetWeaponType(CurWeapon.animType);
         }
     }
 }
Exemplo n.º 3
0
 public void setWeapon(BaseWeapon newWeapon)
 {
     CurWeapon = newWeapon;
     //Debug.Log (newWeapon);
     CurWeapon.AttachWeapon(weaponSlot,weaponOffset,Quaternion.Euler (weaponRotatorOffset),this);
 }