public GameObject SpawnShrine(S_God god) { var shrineObj = Instantiate(shrinePrefab, transform); var shrine = shrineObj.GetComponentInChildren <GodShrine>(); shrine.TakeGod(god); return(shrineObj); }
public void TakeGod(S_God newGod) { god = newGod; transform.name = god.name; shrineImage.sprite = god.godShrine; shrineTalker.conversationPiece = god.shrineConversation; sacrifices = new List <Collectable>(); }
public void Init(S_God givenGod) { god = givenGod; transform.name = god.name + "_Frame"; RefreshStats(); }