Example #1
0
    private void Awake()
    {
        netsScript     = GetComponent <NETSv1>();
        teleportScript = GetComponent <Teleportation>();
        wShiftScript   = GetComponent <WeaponShift>();

        rendNets = netsButton.GetComponent <Renderer>();
    }
    private void Awake()
    {
        //m_text = GetComponent<Text>();
        m_leftTime = GetInitialTime();

        netsScript   = controller.GetComponent <NETSv1>();
        meshText     = textMesh.GetComponent <TextMeshPro>();
        warningAudio = rightController.GetComponent <AudioSource>();
    }
Example #3
0
    // Use this for initialization
    void Awake()
    {
        particle = GetComponent <ParticleLauncher>();
        ingest   = GetComponent <CapsulatedIngestionV2>();
        nets     = GetComponent <NETSv1>();


        particle.enabled = false;
        ingest.enabled   = false;
        nets.enabled     = false;

        rendP = particleButton.gameObject.GetComponent <Renderer>();
        rendI = ingestButton.gameObject.GetComponent <Renderer>();
        rendN = netsButton.gameObject.GetComponent <Renderer>();

        //weaponText = displayUI.GetComponent<TextMeshPro> ();

        aimingReticle.SetActive(false);

        animTeleButton = teleButtonAssembly.GetComponent <Animator>();

        AM2Script  = rightController.GetComponent <AudioManagerS2>();
        errorAudio = GetComponent <AudioSource>();
    }