Пример #1
0
        /// <summary>
        /// スクロールビューにスキルのリストを表示します
        /// </summary>
        private void inputActiveSkillList()
        {
            detachContents();

            headerText.text = "スキル選択";

            backButton.gameObject.SetActive(false);
            isInputingBackButton = false;

            var managerStateNode = Instantiate(managerStateNodePrefab).GetComponent <ManagerStateNode>();

            managerStateNode.setState("アイテムへ", this);
            managerStateNode.transform.SetParent(contents.transform);

            foreach (IActiveSkill skill in player.getActiveSkills())
            {
                GameObject node = Instantiate((GameObject)Resources.Load("Prefabs/ActiveSKillNode"));
                node.GetComponent <ActiveSkillNode>().setState(this, skill);
                node.transform.SetParent(contents.transform);
            }

            GameObject escapeNode = Instantiate((GameObject)Resources.Load("Prefabs/EscapeNode"));

            escapeNode.GetComponent <EscapeNode>().setCharacter(player);
            escapeNode.transform.SetParent(contents.transform);
        }