void Start() { tapScript = gameObject.GetComponentInChildren<touchMonitor>(); bulletScript = portalBullet.GetComponent("portalBullet") as portalBullet; //msg = tapScript.ToString(); //bicepsBone = character.transform.Find("bicepsSpine"); }
// Use this for initialization void Start() { moveScript = sphere.GetComponent("movement") as movement; animScript = gameObject.GetComponent("CharacterAnim") as CharacterAnim; tapScript = sphere.GetComponent("touchMonitor") as touchMonitor; // bulletSpawn = sphere.GetComponent("bulletSpawn") as bulletSpawn; moveHandBone = false; touchMonitor.tapMonitor += tapDetected; angleEvent += angleMethod; // HANDLE THE CASE WHERE HE INSTANTIATES MULTIPLE BULLETS WHEN ANGLES R LOW... // USE EVENTS FOR SWIPE // EVENTS FOR ANIMS }