// Use this for initialization void Start() { du = GameObject.FindObjectOfType <Dungeon>(); state = Turn.PLAYER_TURN; pl = GameObject.FindObjectOfType <PlayerAnim>(); en = GameObject.FindObjectOfType <Enemy>(); hhh = GameObject.FindObjectOfType <TouchSerch>(); }
// Use this for initialization void Start() { pp = GameObject.FindObjectOfType <PlayerAnim>(); anims = GetComponent <Animator> (); badd = GameObject.FindObjectOfType <Battle>(); flag = GameObject.FindObjectOfType <TouchSerch>(); flag.enemyturn = false; badd.EnemyInfoSave(E_HP, E_At, E_Adef, E_Mdef, getsp); }
// Use this for initialization void Start() { ss4 = GameObject.FindObjectOfType <TouchSerch>(); ss5 = GameObject.FindObjectOfType <PlayerAnim>(); Nowfloor = 0; Nowfloortext++; Floortext.text = Nowfloortext + "F"; GameObject enemy = Enemys [Nowfloor]; //new Vector3(-4.7f,5.7f,0) enemy = (GameObject)Instantiate(enemy, new Vector3(-1.2f, 2.56f, 0), Quaternion.identity); enemy.name = "Enemy"; }
public int stackpanels; // スタックパネルの数検索用 // Use this for initialization void Start() { anim = GetComponent <Animator> (); ba = GameObject.FindObjectOfType <Battle>(); animbool = GameObject.FindObjectOfType <TouchSerch>(); stpanel = GameObject.FindObjectOfType <StackPanel>(); Hptext.text = "HP:" + Hp + "/" + MaxHp; Intext.text = "魔法力:" + Inte; Attext.text = "攻撃力:" + At; Sptext.text = "SP:" + Sp; Tptext.text = "TP:" + Tp + "/" + MaxTp; regenerateHP = Mathf.CeilToInt(MaxHp * 0.1f); regenerateTP = Mathf.CeilToInt(MaxTp * 0.1f); }