public virtual void OnEnable()
 {
     targetSpaceShip = target as SpaceShipScript;
 }
Ejemplo n.º 2
0
 void Awake()
 {
     ship = GetComponent <SpaceShipScript>();
 }
 void Start()
 {
     owner           = GameObject.Find("SpaceShip");
     ownerShipScript = owner.GetComponent <SpaceShipScript> ();
 }
Ejemplo n.º 4
0
 void Awake()
 {
     tag    = "Enemy";
     ship   = GetComponent <SpaceShipScript>();
     player = GameObject.FindWithTag("Player");
 }