// public GameObject FakePlayer;

    // public Transform ThePlayer;

    // public Transform Face;

    // public Transform CloningPoint1;

    // public Transform CloningPoint2;

    // public Transform CloningPoint3;

    // public GameObject Watchyeah;

    // public ParticleSystem Smoke;

    // public Material Ghost;

    // public Material Normal;



    void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("Player"))



        {
            ActivateWatchAbility AAW = GameObject.Find("Activate the watch ability").GetComponent <ActivateWatchAbility>();

            AAW.enabled = true;


            print("calmmmm");



            Light_Hold_Blue LHBY = GameObject.FindWithTag("FlashLight").GetComponent <Light_Hold_Blue>();

            LHBY.enabled = false;



            ActivateWatchAbilityTwo_Liban LYPTO = GameObject.Find("Activate second watch ability").GetComponent <ActivateWatchAbilityTwo_Liban>();


            LYPTO.enabled = true;



            Stun_Light_Liban STGH = GameObject.FindWithTag("FlashLight").GetComponent <Stun_Light_Liban>();

            STGH.enabled = false;
        }
    }
    IEnumerator StartTheFirstAbility()


    {
        freeze = true;

        Drone_First_Ability_Liban F2367 = GameObject.Find("Activate Drone first ability").GetComponent <Drone_First_Ability_Liban>();


        F2367.enabled = true;



        ActivateWatchAbility ERT = GameObject.Find("Activate the watch ability").GetComponent <ActivateWatchAbility>();

        ERT.enabled = false;



        Drone_Second_ability_Liban SECSEC = GameObject.Find("Activate Drone second ability").GetComponent <Drone_Second_ability_Liban>();


        SECSEC.enabled = false;



        EnemyFrozenText.gameObject.SetActive(true);



        TheAmazingDrone.GetComponent <BoxCollider>().enabled = true;



        TheAmazingDrone.GetComponent <BoxCollider>().size = new Vector3(SizeX, SizeY, SizeZ);



        yield return(new WaitForSeconds(10.0f));



        freeze = false;



        ActivateWatchAbility TYU = GameObject.Find("Activate the watch ability").GetComponent <ActivateWatchAbility>();


        TYU.enabled = true;



        TheAmazingDrone.GetComponent <BoxCollider>().size = new Vector3(OriginalSizeX, OriginalSizeY, OriginalSizeZ);



        EnemyFrozenText.gameObject.SetActive(false);



        DAENEMY1.GetComponent <Rigidbody>().constraints = RigidbodyConstraints.None;



        DAENEMY2.GetComponent <Rigidbody>().constraints = RigidbodyConstraints.None;



        Drone_Second_ability_Liban RTY = GameObject.Find("Activate Drone second ability").GetComponent <Drone_Second_ability_Liban>();


        RTY.enabled = true;



        yield return(new WaitForSeconds(5.5f));



        Drone_First_Ability_Liban PDFG = GameObject.Find("Activate Drone first ability").GetComponent <Drone_First_Ability_Liban>();

        PDFG.enabled = true;
    }
Exemple #3
0
    IEnumerator ActivateTheCLONES()

    {
        TheWatchYeah.GetComponent <MeshRenderer>().enabled = false;

        TheWatchYeah.GetComponent <BoxCollider>().enabled = false;



        GameObject Clone1 = Instantiate(TheFakePlayer, ACloningPoint1.position, ACloningPoint1.rotation);

        GameObject Clone2 = Instantiate(TheFakePlayer, ACloningPoint2.position, ACloningPoint2.rotation);

        GameObject Clone3 = Instantiate(TheFakePlayer, ACloningPoint3.position, ACloningPoint3.rotation);

        GameObject Clone4 = Instantiate(TheFakePlayer, ACloningPoint4.position, ACloningPoint4.rotation);



        //   TheSmoke.gameObject.SetActive(true);


        ActivateWatchAbility ACVB = GameObject.Find("Activate the watch ability").GetComponent <ActivateWatchAbility>();

        ACVB.enabled = false;



        //Light_Hold_Blue BBBB2 = GameObject.FindWithTag("FlashLight").GetComponent<Light_Hold_Blue>();

        //BBBB2.enabled = false;



        //ActivateWatchAbilityTwo_Liban CVBNM = GameObject.Find("Activate second watch ability").GetComponent<ActivateWatchAbilityTwo_Liban>();

        //CVBNM.enabled = false;



        yield return(new WaitForSeconds(5.0f));



        Destroy(Clone1);

        Destroy(Clone2);

        Destroy(Clone3);

        Destroy(Clone4);



        //Light_Hold_Blue BBBB3 = GameObject.Find("torcia").GetComponent<Light_Hold_Blue>();

        //BBBB3.enabled = true;



        yield return(new WaitForSeconds(6.0f));



        TheWatchYeah.GetComponent <MeshRenderer>().enabled = true;

        TheWatchYeah.GetComponent <BoxCollider>().enabled = true;



        ActivateWatchAbility AVBCN = GameObject.Find("Activate the watch ability").GetComponent <ActivateWatchAbility>();

        AVBCN.enabled = true;



        // ActivateWatchAbilityTwo_Liban ASDF = GameObject.Find("Activate second watch ability").GetComponent<ActivateWatchAbilityTwo_Liban>();


        // ASDF.enabled = true;
    }
    IEnumerator ActivateTheGHOSTSSS()


    {
        TheWatchYEAHYEAH.GetComponent <MeshRenderer>().enabled = false;

        TheWatchYEAHYEAH.GetComponent <BoxCollider>().enabled = false;



        TheeeePlayer.GetComponent <MeshRenderer>().material = Ghoooooost;


        YoFace.GetComponent <MeshRenderer>().material = Ghoooooost;



        ActivateWatchAbilityTwo_Liban GHTY = GameObject.Find("Activate second watch ability").GetComponent <ActivateWatchAbilityTwo_Liban>();

        GHTY.enabled = false;



        //Stun_Light_Liban STYP123 = GameObject.FindWithTag("FlashLight").GetComponent<Stun_Light_Liban>();

        //STYP123.enabled = false;



        //ActivateWatchAbility TYUI = GameObject.Find("Activate the watch ability").GetComponent<ActivateWatchAbility>();

        //TYUI.enabled = false;



        yield return(new WaitForSeconds(5.0f));



        TheeeePlayer.GetComponent <MeshRenderer>().material = Normallll;

        YoFace.GetComponent <MeshRenderer>().material = Normallll;



        Nil_FOVdetection.phantasm = false;



        yield return(new WaitForSeconds(6.0f));



        TheWatchYEAHYEAH.GetComponent <MeshRenderer>().enabled = true;


        TheWatchYEAHYEAH.GetComponent <BoxCollider>().enabled = true;



        ActivateWatchAbilityTwo_Liban AVWA2 = GameObject.Find("Activate second watch ability").GetComponent <ActivateWatchAbilityTwo_Liban>();

        AVWA2.enabled = true;



        ActivateWatchAbility POIU = GameObject.Find("Activate the watch ability").GetComponent <ActivateWatchAbility>();

        POIU.enabled = true;


        GetComponent <ActivateWatchAbilityTwo_Liban>().enabled = true;
    }