Advertisement
Guest User

FailOrSucceedCheck

a guest
Aug 10th, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Debug = UnityEngine.Debug;
  5.  
  6. public class FORScheck : MonoBehaviour
  7. {
  8.     public ScoreHolder ScoreH;
  9.  
  10.     void Start(){
  11.         GameObject g = GameObject.FindGameObjectWithTag(ScoreKeep);
  12.         ScoreH = g.GetComponent<ScoreHolder>();
  13.     }
  14.  
  15.     private void Awake()
  16.     {
  17.         if (ScoreH.Succeeded == true){
  18.             Debug.Log("Succeeded!");
  19.         }
  20.     }
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement