public void PlaceBody(Corpse corpse) { hasBody = true; bodyCleanliness = 0; bar.SetActive(true); progressBar.SetProgress(0); boatSpawner.RequestBoat(); flashingPrompt.StartFlash(); if (corpse.corpseType == Corpse.CorpseType.King) { kingBody.SetActive(true); } else if (corpse.corpseType == Corpse.CorpseType.Noble) { nobleBody.SetActive(true); } else if (corpse.corpseType == Corpse.CorpseType.Priest) { priestBody.SetActive(true); isPriestBody = true; } else if (corpse.corpseType == Corpse.CorpseType.None) //shouldn't be possible -_- { Debug.Log("canBePrepared variable is true but CorpseType is None"); } }
public void PlaceBody(Corpse corpse) { hasBody = true; bodyPushProgress = 0; bar.SetActive(true); furnaceCorpse.SetActive(true); progressBar.SetProgress(0); flashingPrompt.StartFlash(); furnaceCorpse.transform.position = corpseStartPos; }