// Update is called once per frame void Update() { if (hasFired == false) { Fire(Kyle.getMyPosition(), script.getTarget()); hasFired = true; } }
void FixedUpdate() { if (Input.GetKeyDown(KeyCode.F)) { fireball = Instantiate(fireball); fireball.GetComponent <Fireball>().setTestFire(this); fireball.transform.position = Kyle.getMyPosition(); } }