public void AddArtifact(Artifact artifact) { team.AddNewArtifact(artifact); artifactReward = false; PlayerPrefs.SetInt("continued", 1); PlayerPrefs.Save(); gc.EndGame(); // smooth transition here }
public void AddArtifactToTeam(Artifact art) { Team team = FindObjectOfType <Team>(); team.AddNewArtifact(art); }