public void updateLava() { CheckObjects(); if (!has_stuff) { //Debug.Log("Cluster is empty\n"); my_lava.KillMe(); return; } if (my_lava == null || my_lava.walk == null) { return; } updateCenter(); my_lava.walk.UpdateMe(center); }
protected override void SafeDisable() { if (my_lava != null) { my_lava.KillMe(); my_lava = null; } if (my_ai.player != finish) { my_ai.player = finish; my_ai.forward_only = true; is_active = false; if (!my_ai.dead) { my_ai.getNewPath(); } } }