void OnAbduction(Character character) { print("ABDUCTION" + character); id++; if (id > 5) { id = 0; } Explotion newExplotion = Instantiate(explotion); newExplotion.transform.position = character.transform.position; newExplotion.Init(id); }
void OnAddExplotion(Vector3 pos) { Explotion new_explotion = Instantiate(explotion); new_explotion.Init(pos); }