Esempio n. 1
0
        /// <summary>
        /// 戻るが選択された時の処理
        /// </summary>
        public void backChose()
        {
            if (skillView != null)
            {
                Destroy(skillView.gameObject);
            }
            skillView = null;

            if (itemView != null)
            {
                Destroy(itemView.gameObject);
            }
            itemView = null;

            if (stateView != null)
            {
                Destroy(stateView.gameObject);
            }
            stateView = null;

            if (questView != null)
            {
                Destroy(questView.gameObject);
            }
            questView = null;

            inputIndex();
        }
Esempio n. 2
0
 /// <summary>
 /// キャラクターが選ばれた時の処理
 /// </summary>
 private void inputCharacterStateView(IPlayable character)
 {
     if (stateView == null)
     {
         GameObject viewObject = Instantiate(menuCharacterViewPrefab, new Vector3(312, 384, 0), new Quaternion(0, 0, 0, 0));
         stateView = viewObject.GetComponent <MenuCharacterStateView>();
         stateView.transform.SetParent(CanvasGetter.getCanvasElement().transform);
     }
     stateView.setCharacter(character);
 }