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; }
// Use this for initialization void Start() { pirateScript = pirateShip.GetComponent<PirateShipMovement>(); playerScript = playerDashboard.GetComponent<PlayerShipStats>(); npc_CommScreen.SetActive(true); introText.SetActive(true); Invoke("setPlayActive", instructionTime); rsSelectorScript = rsSelector.GetComponent<RSSelectorRaycast>(); canvasCameraLayerMask = LayerMask.GetMask ("RealSenseInteractiveUI"); }
// Use this for initialization void Start() { pirateScript = pirateShip.GetComponent <PirateShipMovement>(); playerScript = playerDashboard.GetComponent <PlayerShipStats>(); npc_CommScreen.SetActive(true); introText.SetActive(true); Invoke("setPlayActive", instructionTime); rsSelectorScript = rsSelector.GetComponent <RSSelectorRaycast>(); canvasCameraLayerMask = LayerMask.GetMask("RealSenseInteractiveUI"); }