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