Example #1
0
 void Start()
 {
     bullP = pistol.GetComponent <bulletprojectile> ();
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     bullP     = pistol.GetComponent <bulletprojectile> ();    //gets the bulletprojectile component from the pistol
     ammoCount = this.GetComponent <Text> ();
 }