Example #1
0
    void Awake()
    {
        if (Instance)
        {
            Destroy(this);
            return;
        }

        Instance          = this;
        objectsToUpdate   = new List <FoliageInfo>();
        workerThreadClass = new ScaleUpdateWorker(updateInterval, Time.time);
    }
	void Awake ()
	{
		if (Instance)
		{
			Destroy(this);
			return;
		}

		Instance = this;
		objectsToUpdate = new List<FoliageInfo>();
		workerThreadClass = new ScaleUpdateWorker (updateInterval, Time.time);
	}