示例#1
0
 public static void GoToDiagnostics(BodyPartOrigin monsterType)
 {
     if (monsterType >= 0)
     {
         DiagnosticSceneInformation.monsterType = monsterType;
     }
     SceneManager.LoadScene(2); //Scene 2 is Diagnostics
 }
示例#2
0
    public void UpdateObjectToOrigin(BodyPartOrigin bodyPartOrigin)
    {
        BodyImage bodyImage = bodyImages.FirstOrDefault(x => x.bodyPartOrigin == bodyPartOrigin);

        if (!bodyImages.IsDefault())
        {
            SetImage(bodyImage.image);
        }
        this.bodyPartOrigin = bodyPartOrigin;
    }
示例#3
0
    public void GeneratePotionAndSendToThePlayer()
    {
        if (potionBody == default)
        {
            return;
        }
        BodyPartOrigin body = potionBody;

        if (PlayerDiagnosticController.IsInfoEquals(body))
        {
            StoreSceneInfo.win = true;
        }
        else
        {
            StoreSceneInfo.win = false;
        }
        SceneManager.LoadScene("Store");
    }
示例#4
0
    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);
 }