Example #1
0
 public void DownSelect()
 {
     former_arm_weapon_ = arm_weapon_;
     arm_weapon_--;
     if ((int)arm_weapon_ <0 )
     {
         arm_weapon_ = (ArmWeapon)2;
     }
     SelectWeapon();
 }
 // Use this for initialization
 void Start()
 {
     pistol.SetActive(true);
     smg.SetActive(false);
     shotgun.SetActive(false);
     burst.SetActive(false);
     missle.SetActive(false);
     storm.SetActive(false);
     weapon = GameObject.FindWithTag("Arm").GetComponent <ArmWeapon>();
     check  = GameObject.FindWithTag("WeaponManager").GetComponent <WeaponManager>();
 }
Example #3
0
    public void UpSelect()
    {
        former_arm_weapon_ = arm_weapon_;
        arm_weapon_++;
        if ((int)arm_weapon_ >= 3)
        {
            arm_weapon_ = 0;
        }

        SelectWeapon();
    }