Hello

I used part of the code from the 2d shooter for the collision between players and projectiles. I am having an issues with the enemy colliding with the player the explosion isn't instantiating or does the enemy go back to the start position-

Here is the code I have for this-

Code:
using UnityEngine;
using System.Collections;

public class F35Player : MonoBehaviour {

public Texture2D btnFire;
public static int Score = 0;
public static int Lives = 3;
public GameObject AMRAM;
public GameObject FriendlyExplosion;



   void OnGUI() 
        {
		if (GUI.Button(new Rect(Screen.width/1.25f - 1,Screen.height/1.25f - 1, 50, 50), btnFire)) 
 		{
            Instantiate(AMRAM, transform.position, transform.rotation);
	  	}
        GUI.Label(new Rect(100, 10, 100, 20), "Kills: " + F35Player.Score.ToString());
        GUI.Label(new Rect(100, 40, 100, 20), "Aircraft: " + F35Player.Lives.ToString());
        }
   void OnTriggerEnter(Collider otherObject)
	    {
		if (gameObject.tag == "Enemy")
		{
		   F35Player.Lives--;
			
		   Enemy enemy = (Enemy)otherObject.gameObject.GetComponent("Enemy");
		   enemy.SetPositionAndSpeed();
			
		   Instantiate(FriendlyExplosion, transform.position, Quaternion.identity); 
		}
	}

}