/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void Start() { //-------------- Class_AdditionalTools.RandomName(gameObject, "Forest"); StartCoroutine(Class_Forest.Generation(thisTransform, treesMaterial)); //-------------- }
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void Particles() { //-------------- amountDamage += currentDamage; if (amountDamage >= 1.8f) { if (visible == true) { Class_Forest.ParticlesDestroyed(thisTransform); } Class_Mineral.RandomMinerals(thisTransform); TreesPool.TakeTree(gameObject); } //-------------- }