예제 #1
0
파일: Shield.cs 프로젝트: TheFracker/Wrahh
    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();
        }
    }
예제 #2
0
파일: HUD.cs 프로젝트: TheFracker/Wrahh
 //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>();
     }
 }
예제 #3
0
파일: Helm.cs 프로젝트: TheFracker/Wrahh
 void Start()
 {
     if (wrahh == null)
     {
         wrahh = GameObject.FindWithTag("Player").AddComponent <Wrahh>();
     }
 }
예제 #4
0
파일: HUD.cs 프로젝트: TheFracker/Wrahh
 //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>();
     }
 }
예제 #5
0
파일: HUD.cs 프로젝트: TheFracker/Wrahh
 void Start()
 {
     //The player variable containing an instance of wrahh has the current wrahh in the scene
         player = GameObject.FindWithTag("Player").gameObject.GetComponent<Wrahh>();
 }
예제 #6
0
파일: Shield.cs 프로젝트: TheFracker/Wrahh
 void Start()
 {
     if(wrahh == null) //Function which prevents stack Overflow
         wrahh = new Wrahh();
 }
예제 #7
0
파일: Helm.cs 프로젝트: TheFracker/Wrahh
 void Start()
 {
     if(wrahh == null)
         wrahh = GameObject.FindWithTag("Player").AddComponent<Wrahh>();
 }
예제 #8
0
파일: HUD.cs 프로젝트: TheFracker/Wrahh
 void Start()
 {
     //The player variable containing an instance of wrahh has the current wrahh in the scene
     player = GameObject.FindWithTag("Player").gameObject.GetComponent <Wrahh>();
 }