// void SetCursorState() // { // // } void Start() { Time.timeScale = 1; if (shotsDisplay != null) { shotsDisplay.SetActive(false); } canvas = GetComponent <Canvas>(); canvas.enabled = false; if (SceneManager.GetActiveScene().name != "Intro Scene") { //eventSystem.SetActive (false); // if(SceneManager.GetActiveScene().name != "CapMultiplayer") // { dannyCameraBase = gmobj.dannyContainer.GetComponentInChildren <FreeCameraLook> ().gameObject; dannyShutCameraOff = dannyCameraBase.GetComponent <FreeCameraLook>(); shutWeaponsOff = gmobj.danny.GetComponent <DannyWeaponScript>(); strongmanCameraBase = gmobj.strongmanContainer.GetComponentInChildren <FreeCameraLook> ().gameObject; strongmanCameraOff = strongmanCameraBase.GetComponent <FreeCameraLook> (); // } // else if(SceneManager.GetActiveScene().name == "CapMultiplayer") // { // // Debug.Log ("This is a network game!!!"); // } // sfxSlider.value = PersistThroughScenes.sfxVolume; // musicSlider.value = PersistThroughScenes.musicVolume; } sfxSlider.enabled = false; musicSlider.enabled = false; quit.enabled = false; }
void Start() { tutorialPanel.SetActive(false); setInfo = true; userInput = player.GetComponent <UserInput>(); dannyMovement = player.GetComponent <DannyMovement>(); dannyWeaponScript = player.GetComponent <DannyWeaponScript>(); jumpingScript = player.GetComponent <JumpingRaycastDown>(); rigidBody = player.GetComponent <Rigidbody>(); bToUseImage = buttonToUse2.GetComponent <Image>(); bToUseText = buttonToUse2.GetComponentInChildren <Text>(); tutorial = false; if (tutorial) { tut1 = true; tut2 = true; tut3 = true; tut4 = true; tut5 = true; tut6 = true; tut7 = true; tut8 = true; tut9 = true; tut10 = true; tut11 = true; } else if (!tutorial) { tut1 = false; tut2 = false; tut3 = false; tut4 = false; tut5 = false; tut6 = false; tut7 = false; tut8 = false; tut9 = false; tut10 = false; tut11 = false; } }
void Awake() { //gameMaster = GameObject.Find ("GameMasterObject"); //gmobj = gameMaster.GetComponent<GameMasterObject> (); //lookAround1 = lv1TurretNorth.GetComponentInChildren<MouseLookScript> (); lookAround2 = lv1TurretWest.GetComponentInChildren <MouseLookScript> (); lookAround3 = lv1TurretEast.GetComponentInChildren <MouseLookScript> (); lookAround4 = lv2TurretWest.GetComponentInChildren <MouseLookScript> (); lookAround5 = lv2TurretEast.GetComponentInChildren <MouseLookScript> (); //mount1 = lv1TurretNorth.GetComponentInChildren<MountedTurretGuns> (); mount2 = lv1TurretWest.GetComponentInChildren <MountedTurretGuns> (); mount3 = lv1TurretEast.GetComponentInChildren <MountedTurretGuns> (); mount4 = lv2TurretWest.GetComponentInChildren <MountedTurretGuns> (); mount5 = lv2TurretEast.GetComponentInChildren <MountedTurretGuns> (); //cam1 = lv1TurretNorth.GetComponentInChildren<Camera> (); cam2 = lv1TurretWest.GetComponentInChildren <Camera> (); cam3 = lv1TurretEast.GetComponentInChildren <Camera> (); cam4 = lv2TurretWest.GetComponentInChildren <Camera> (); cam5 = lv2TurretEast.GetComponentInChildren <Camera> (); dannyWeapons = danny.GetComponent <DannyWeaponScript> (); }
void Awake() { // anim = GetComponent<Animator>(); // playerAudio = GetComponent<AudioSource>(); dannyWeapons = GetComponent <DannyWeaponScript> (); dannyMovement = GetComponent <DannyMovement>(); charMove = GetComponent <StrongManMovement> (); userInput = GetComponent <UserInput> (); sUinput = GetComponent <StrongManUserInput>(); if (displayModel != null) { rend = displayModel.GetComponent <Renderer>(); } currentHealth = startingHealth; countPower = startingPower; maxHealth = startingHealth; maxPower = startingPower; regColor = rend.material.color; }
public void GetDannyInfo() { shutWeaponsOff = GameMasterObject.dannyNetwork.GetComponent <DannyWeaponScript>(); }