private void Alt() { List <Whackable>[] w = { new List <Whackable>(), new List <Whackable>() }; for (int i = 0; i < whack.Count; i++) { w[whack[i].type].Add(whack[i]); } for (int i = 0; i < w.Length; i++) { ActiveOverworldEntity.LoadActive(w[i]); } }
// Start is called before the first frame update void Awake() { for (int i = 0; i < whackPack.Length; i++) { for (int j = 0; j < whackPack[i].transform.childCount; j++) { whack.Add(whackPack[i].transform.GetChild(j).GetComponent <Whackable>()); } } if (!LocationRememberer.awokenDim[FindObjectOfType <LocationLoader>().num]) { for (int i = 0; i < whack.Count; i++) { whack[i].id = ActiveOverworldEntity.AddEntity(whack[i].type, whack[i]); } } else { Alt(); } }