void Start () { //MP = Player_Prefab_.GetComponent<Manekin_Pis>(); MP = GameObject.FindWithTag("Player").GetComponent<Manekin_Pis>(); UpdateHealthBar (); initHealthBarBackGround (); //Player_Prefab=GameObject<> }
// Use this for initialization void Start () { E = new Enemy(); E.SCORE = scorePoint;//倒した時のスコア E.HP = enemyHitPoint;//体力 MP = GameObject.FindWithTag("Player").GetComponent<Manekin_Pis>(); if (smokeEffect == null) smokeEffect = Resources.Load<GameObject> ("smoke"); }
// Use this for initialization void Start() { MP = GameObject.FindWithTag("Player").GetComponent<Manekin_Pis>(); HBC = GameObject.FindWithTag("HealthBar").GetComponent<HealthBarController>();//体力バー関係 AS = GameObject.FindWithTag("Audio").GetComponent<AudioScript>(); }
// Use this for initialization void Start () { MP = GameObject.FindWithTag("Player").GetComponent<Manekin_Pis>(); SCORE_ = GameObject.Find("SCORE"); }