// Use this for initialization
 void Start()
 {
     playerManager = GameObject.Find ("Player").GetComponent<FPSControl> ();
 }
Exemple #2
0
 void Awake()
 {
     instance = this;
 }
Exemple #3
0
 // Initiate by setting ammo to max
 void Start()
 {
     CurrentAmmo    = MaxAmmo;
     Cursor.visible = false;
     Control        = GetComponentInParent <FPSControl>();
 }