unity 2d top down check if gameobject exists at position code example
Example 1: unity if gameobject exists
if (GameObject.Find("WhateverItsCalled") != null){ //it exists}
Example 2: unity c# check how many of an object exists
TotalAmount = FindObjectsOfType<Object>().Length;