Esempio n. 1
0
 void Start()
 {
     _pacSize = GetComponent<SphereCollider>().bounds.size.x;
     hero = GameObject.FindGameObjectWithTag("Player");
     startPosition = hero.transform.position;
     swingingPowerScript = GameObject.Find("mod_pacman_Hero_40x40x40_02").GetComponent<SwingThreeTimes>();
 }
Esempio n. 2
0
	void Start () {
		swordPowerScript = GameObject.Find("mod_pacman_Hero_40x40x40_02").GetComponent<SwingThreeTimes>();
		liePowerScript = GameObject.Find("mod_pacman_Hero_40x40x40_02").GetComponent<Lie_Script>();
		lancerPowerScript = GameObject.Find("mod_pacman_Hero_40x40x40_02").GetComponent<Lancer>();
	}