Esempio n. 1
0
    private int protection = 0; //Variable which is changed when upgrading equipped shield

    void Start()
    {
        if (wrahh == null)        //Function which prevents stack Overflow
        {
            wrahh = new Wrahh();
        }
    }
Esempio n. 2
0
 //Created so that when wrahh dies and the game is restarted a new HUD containing the "new" Wrahhs stats will appear
 void OnLevelWasLoaded(int level)
 {
     if (level == 1){
         //player variable will contain the Wrahh currently located in the scene
         player = GameObject.FindWithTag("Player").gameObject.GetComponent<Wrahh>();
     }
 }
Esempio n. 3
0
 void Start()
 {
     if (wrahh == null)
     {
         wrahh = GameObject.FindWithTag("Player").AddComponent <Wrahh>();
     }
 }
Esempio n. 4
0
 //Created so that when wrahh dies and the game is restarted a new HUD containing the "new" Wrahhs stats will appear
 void OnLevelWasLoaded(int level)
 {
     if (level == 1)
     {
         //player variable will contain the Wrahh currently located in the scene
         player = GameObject.FindWithTag("Player").gameObject.GetComponent <Wrahh>();
     }
 }
Esempio n. 5
0
 void Start()
 {
     //The player variable containing an instance of wrahh has the current wrahh in the scene
         player = GameObject.FindWithTag("Player").gameObject.GetComponent<Wrahh>();
 }
Esempio n. 6
0
 void Start()
 {
     if(wrahh == null) //Function which prevents stack Overflow
         wrahh = new Wrahh();
 }
Esempio n. 7
0
 void Start()
 {
     if(wrahh == null)
         wrahh = GameObject.FindWithTag("Player").AddComponent<Wrahh>();
 }
Esempio n. 8
0
 void Start()
 {
     //The player variable containing an instance of wrahh has the current wrahh in the scene
     player = GameObject.FindWithTag("Player").gameObject.GetComponent <Wrahh>();
 }