Welcome!

Welcome to our community forums, full of great people, ideas and excitement. Please register if you would like to take part.

This is extra text with a test link..

Register Now

Announcement

Collapse
No announcement yet.

for Tré

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • for Tré

    Code:
    if (Input.GetAxisRaw ("WeaponSwap") != 0)
    	{
    		if (sixthAxisInUse == false)
    		{
    			if (Input.GetAxisRaw ("WeaponSwap") == 1)
    			{
    				
    				activeWeapon = "Bow and Arrow";
    			
    				sword.SetActive(false);
    				
    				bowandArrow.SetActive(true);
    			}
    		
    			if (Input.GetAxisRaw ("WeaponSwap") == -1)
    			{
    				
    				activeWeapon = "Sword";
    				
    				bowandArrow.SetActive(false);
    				
    				sword.SetActive(true);
    			}
    			
    			sixthAxisInUse = true;
    		}
    	} 
    	
    	if (Input.GetAxisRaw ("WeaponSwap") == 0)
    	{
    		sixthAxisInUse = false;
    	}
Working...
X