void Shoot() { //uz shavienu tiek izsaukta bulta, kas ir versta uz to pashu pusi ka tornis GameObject boltGO = (GameObject)Instantiate(arrowPrefab, firePoint.position, firePoint.rotation); Bolt bolt = boltGO.GetComponent <Bolt>(); //ja bulta ir izshauta, ta seko merkim if (bolt != null) { bolt.Seek(target); } }