Example #1
0
 void Start()
 {
     circleCollider2d = GetComponent <CircleCollider2D>();
     rb2d             = GetComponent <Rigidbody2D>();
     fuelDropSpot     = GameObject.FindWithTag("MotherShip").GetComponent <MotherShip>().FuelDropSpot;
     GetComponent <Tractorable>().Activate();
 }
Example #2
0
 void Start()
 {
     effect       = GetComponent <WarpEffect>();
     motherShip   = GameObject.FindGameObjectWithTag("MotherShip").GetComponent <MotherShip>();
     ui           = GameObject.FindGameObjectWithTag("UI").GetComponent <UI>();
     player       = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMovement>();
     levelRoot    = GameObject.FindGameObjectWithTag("Level");
     fuelDropSpot = motherShip.FuelDropSpot;
     DisableFuelDropSpot();
 }