예제 #1
0
 void Awake()
 {
     // Setting up the references.
     krgScript       = GetComponent <KineticRailGun>();
     playerShip      = GameObject.FindGameObjectWithTag("Player");
     playerShipStats = playerShip.GetComponent <PlayerShipStats>();
     pmScript        = GetComponent <PirateShipMovement>();
     startingHealth  = (int)PirateHealthSlider.maxValue;
 }
 void Awake()
 {
     // Setting up the references.
     krgScript = GetComponent<KineticRailGun>();
     playerShip = GameObject.FindGameObjectWithTag ("Player");
     playerShipStats = playerShip.GetComponent<PlayerShipStats>();
     pmScript = GetComponent<PirateShipMovement>();
     startingHealth = (int)PirateHealthSlider.maxValue;
 }