Saturday, February 23, 2019

Unity 3d Collect Objects full scripts by allunityscripts

Collect Objects

unity3d full script collect objects

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ObjectsToCollect : MonoBehaviour {
    public static int objects = 0;
// Use this for initialization
void Awake () {
        objects++;
}

// Update is called once per frame
    void OnTriggerEnter(Collider plyr)
    {
        if (plyr.gameObject.tag == "Player")
            objects--;
        gameObject.SetActive(false);
    }
}

2 comments:

  1. I read your post when it was fresh. I stumbled on this link again while searching for something else. Since this appears to be favored by Google it is worth pointing out MS has changed its mind.

    Technology Company that provides certifications solutions and exams for cloud platforms virtualization and mores that empowers users to operate on an assortment of devices. Citrix products are XenMobile, XenDesktop, ShareFile, XenApp and NetScaler. Nearly 100 millions of consumers use Citrix products globally. Citrix Duties are made to reflect the requirements of IT Professionals and associations.
    KILLERDUMPS offers its IT Assessment Dump Files and Practice Test Simulator on cost with 100 percent Guaranteed Success. We provide constant after sale service for Citrix Answer Files and Question and Practice Software to counter any inconvenience.

    You can get Citrix Exam Dumps

    ReplyDelete