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>(); }
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>(); }