void AbilitiesManagement(int Level, bool isSmall, bool isMedium, bool isLarge) { foreach (GameObject item in Aoes_Pools) { if (item.transform.GetChild(0).GetComponent <AoeManager>()) { AoeManager am = item.transform.GetChild(0).GetComponent <AoeManager>(); if (am.Level == Level && !item.gameObject.activeInHierarchy) { item.SetActive(true); am.OnBeingCast(SingleTarget_Position); return; } else { } } } }
public void TargetOnSpecificSpotsPattern(Vector3 _spot, int Level) { foreach (GameObject item in Aoes_Pools) { if (item.transform.GetChild(0).GetComponent <AoeManager>()) { AoeManager am = item.transform.GetChild(0).GetComponent <AoeManager>(); if (am.Level == Level && !item.gameObject.activeInHierarchy) { item.SetActive(true); am.OnBeingCast(_spot); return; } else { } } } }