void Start ()
	{
        //MP = Player_Prefab_.GetComponent<Manekin_Pis>();
        MP = GameObject.FindWithTag("Player").GetComponent<Manekin_Pis>();
		
		UpdateHealthBar ();
		initHealthBarBackGround ();
        //Player_Prefab=GameObject<>
	}
Example #2
0
	// 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");
	}
Example #3
0
 // 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>();
 }
Example #4
0
	// Use this for initialization
	void Start () {
        MP = GameObject.FindWithTag("Player").GetComponent<Manekin_Pis>();
        SCORE_ = GameObject.Find("SCORE");
	}