Example #1
0
        public void DoOrder(int i)
        {
            if (i == -4)
            {
                GameObject.FindGameObjectWithTag(Constants.Tags.DatabaseManager).GetComponent <DatabaseManager>().ResetUserData();
            }

            _sidekickControls.ExecuteAction(i);
        }
    public void testFunc()
    {
        var sentence = GetSentence();

        if (_sidekick == null)
        {
            return;
        }
        if (transform.GetChild(2).GetComponent <Image>().sprite == null && transform.GetChild(0).GetComponent <Image>().sprite == null && transform.GetChild(1).GetComponent <Image>().sprite == null)
        {
            return;
        }
        else
        {
            _sidekick.ExecuteAction(sentence.FirstOrDefault());
            isb.ActivatePlayerSignBubble(sentence);
            am.StartPlayMaleCoroutine(gameObject.GetComponent <SymbolHandler>().ID);
            gameui.GetComponent <UiController>().PokedexClose();
        }
    }