public static void GoToDiagnostics(BodyPartOrigin monsterType) { if (monsterType >= 0) { DiagnosticSceneInformation.monsterType = monsterType; } SceneManager.LoadScene(2); //Scene 2 is Diagnostics }
public void UpdateObjectToOrigin(BodyPartOrigin bodyPartOrigin) { BodyImage bodyImage = bodyImages.FirstOrDefault(x => x.bodyPartOrigin == bodyPartOrigin); if (!bodyImages.IsDefault()) { SetImage(bodyImage.image); } this.bodyPartOrigin = bodyPartOrigin; }
public void GeneratePotionAndSendToThePlayer() { if (potionBody == default) { return; } BodyPartOrigin body = potionBody; if (PlayerDiagnosticController.IsInfoEquals(body)) { StoreSceneInfo.win = true; } else { StoreSceneInfo.win = false; } SceneManager.LoadScene("Store"); }
private void OnItemEnter() { string textToCompare = string.Empty; foreach (TypeItem typeItem in itensInside) { if (textToCompare != string.Empty) { textToCompare += "|"; } textToCompare += typeItem.ToString(); } if (itens.ContainsKey(textToCompare)) { potionBody = itens[textToCompare]; ButtonsPotionPanelController.EnableOkButton(); } }
public static bool IsInfoEquals(BodyPartOrigin info) { return(singleton.info.whoAmI == info); }