示例#1
0
    // Use this for initialization
    void Start()
    {
        timerText.text = time.ToString();
        loveText.text  = "100%";
        goalScript     = goalObj.GetComponent <ScrGoalDetection>();
        levelManager   = GameObject.FindObjectOfType <ScrLevelManager>();

        loveText.gameObject.SetActive(false);
        loveLabel.gameObject.SetActive(false);
        goodBoyLabel.gameObject.SetActive(false);

        levelOver      = false;
        masterDoneAnim = false;
    }
示例#2
0
 // Use this for initialization
 void Start()
 {
     rb         = GetComponent <Rigidbody>();
     mainCamera = Camera.main;
     goalScript = goalObj.GetComponent <ScrGoalDetection>();
 }