public void ResetValues() { collectedKeys = 0; totalKeys = 0; endCilinder = null; player = null; _shipAce = Instantiate(shipAce); portalIsOpened = false; }
public bool IsCollided(Player player, FinishZone finishZone) { var intersectionDeter = new IntersectionDeterminant(); return(intersectionDeter.IsIntersected(player.Form, finishZone.Form)); }