Ejemplo n.º 1
0
        private void Awake()
        {
            player.Init();
            ennemy.Init();

            ennemyAttacks = GetComponent <EnnemyAttacks>();

            Transform dialPanel = actionsPanel.Find("DialogPanel");

            bigTxt       = dialPanel.Find("DialogBig").GetComponentInChildren <Textshadow>();
            smallTxt     = dialPanel.Find("DialogSmall").GetComponentInChildren <Textshadow>();
            choicesPanel = actionsPanel.Find("ChoicesPanel").GetComponent <ActionPanel>();
            songPanel    = actionsPanel.Find("SongPanel").GetComponent <ActionPanel>();
            punchPanel   = actionsPanel.Find("PunchPanel").GetComponent <ActionPanel>();
            Transform descPanel = actionsPanel.Find("AttacksDescriptionPanel");

            attackDescriptionPanel = descPanel.gameObject;
            descPpTxt   = descPanel.Find("PP").GetComponentInChildren <Textshadow>();
            descTypeTxt = descPanel.Find("Type").GetComponentInChildren <Textshadow>();

            audioSource = GetComponent <AudioSource>();

            choicesPanel.Init(descPpTxt, descTypeTxt);
            songPanel.Init(descPpTxt, descTypeTxt);
            punchPanel.Init(descPpTxt, descTypeTxt);
        }
Ejemplo n.º 2
0
        /*private void Start()
         * {
         *  Reselect();
         * }*/

        public void Init(Textshadow pp, Textshadow type)
        {
            ppTxt   = pp;
            typeTxt = type;
        }