Esempio n. 1
0
    public void resetTargets()
    {
        destroyBulletsScript.destroyAllBulletsInList();

        Destroy(currentTargets);

        currentTargets = Instantiate(targetsPrefab, targetTransform.position, targetTransform.rotation) as GameObject;
        destroyBulletsScript = currentTargets.GetComponent<DestroyBullets>();
    }
Esempio n. 2
0
 void Start()
 {
     destroyBulletsScript = currentTargets.GetComponent<DestroyBullets>();
     targetTransform = new SaveTransform(currentTargets.transform);
 }