void DeathDeath() { // Destroy(gameObject); gameObject.SetActive(false); CurrentDroneHealth = 370f; Place_Drone_InFrontOfPlayer_Liban TYS = GameObject.Find("Press Q to child drone").GetComponent <Place_Drone_InFrontOfPlayer_Liban>(); TYS.DroneCameraLIVE.gameObject.SetActive(false); DroneHealthBar.gameObject.SetActive(false); DaTorch.SetActive(true); Outline OP = GameObject.FindWithTag("AI").GetComponent <Outline>(); OP.enabled = false; }
// Update is called once per frame void Update() { DroneeeTimer -= Time.deltaTime; int seccondsssss = (int)(DroneeeTimer % 60); TheOneTorch.SetActive(false); if (DroneeeTimer <= 19) { print("DroneTimer activated yh"); } if (DroneeeTimer <= 7) { freeze = false; expose = false; TheOneDrone.GetComponent <BoxCollider>().size = new Vector3(OGSizeX, OGSizeY, OGSizeZ); TheOneDrone.GetComponent <SphereCollider>().radius = 521.5f; Place_Drone_InFrontOfPlayer_Liban PDIFOP = GameObject.Find("Press Q to child drone").GetComponent <Place_Drone_InFrontOfPlayer_Liban>(); PDIFOP.enabled = false; } if (DroneeeTimer <= 1) { DroneeeTimer = 19f; GetComponent <Final_Drone_Timer_Liban>().enabled = false; } }