Inheritance: UnityEngine.MonoBehaviour
Example #1
0
 private void _PlayGlitch()
 {
     Kino.AnalogGlitch ag = Camera.main.GetComponent <Kino.AnalogGlitch>();
     if (!ag.enabled)
     {
         audioEffects.playSprite(audioEffects.effectType.alarm);
         Invoke("_PlayGlitch", glichDuration);
     }
     ag.enabled = !ag.enabled;
 }
Example #2
0
    // Use this for initialization
    void Start()
    {
        analogGlitch  = Camera.main.GetComponent <Kino.AnalogGlitch>();
        digitalGlitch = Camera.main.GetComponent <Kino.DigitalGlitch>();

        matVariables    = new[] { bigPrismMatSettings, mirrorMatSettings };
        audioController = AudioController.instance;

        //StageController.instance.SwtichStage(4);
    }
    virtual public void copyFrom(BaseDestructibleScript source)
    {
        tags = source.tags;
        chunkPhysicsMaterial = source.chunkPhysicsMaterial;
        explosion            = source.explosion;
        smallExplosion       = source.smallExplosion;
        cam_shake            = source.cam_shake;
        anal_glitch          = source.anal_glitch;

        GetComponent <Collider2D>().sharedMaterial = chunkPhysicsMaterial;
    }
Example #4
0
 void Awake()
 {
     initialDistance = Camera.main.orthographicSize;
     player          = GameObject.FindGameObjectWithTag("Player");
     if (player != null)
     {
         transform.position = player.transform.position;
     }
     glitch = GetComponentInChildren <Kino.AnalogGlitch>();
     BetweenWorldsUI.betweenWorldsDelegate += Glitch;
 }
    // Use this for initialization
    void Start()
    {
        TextMesh text         = GetComponent <TextMesh>();
        Animator textAnimator = GetComponent <Animator>();

        glitch = GameObject.Find("Main Camera").GetComponent <Kino.AnalogGlitch>();
        Color originalColor = text.color;

        text.text = "I'm pretty excited this is my first date in years,\nMy date's name is Adeline; \nWe met on Cupid.com.";
        StartCoroutine(MainLoop());
    }
Example #6
0
 // Use this for initialization
 void Awake()
 {
     Sources        = GetComponents <AudioSource>();
     _glitchScript  = Camera.main.GetComponent <Kino.AnalogGlitch>();
     _pController   = GetComponent <FirstPersonController>();
     _posicoes      = new PilhaEncadeada <Vector3>();
     _rotacoes      = new PilhaEncadeada <Quaternion>();
     _ultimaPosicao = transform.position;
     _ultimaRotacao = transform.rotation;
     _posicoes.Inserir(_ultimaPosicao);
     _rotacoes.Inserir(_ultimaRotacao);
     Sources[1].clip = Base;
     Sources[1].Play();
 }
Example #7
0
    void Awake()
    {

        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }
        DontDestroyOnLoad(gameObject);
        glitch = Camera.main.GetComponent<Kino.AnalogGlitch>();
    }
Example #8
0
    // Use this for initialization
    void Start()
    {
        SatelliteCamera         = GetComponent <Camera>();
        source                  = GetComponent <AudioSource>();
        player                  = GameObject.FindGameObjectWithTag("Player");
        pos.x                   = player.transform.localPosition.x;
        pos.y                   = player.transform.localPosition.y + 50;
        pos.z                   = player.transform.localPosition.z - 30;
        currentFOV              = SatelliteCamera.fieldOfView;
        transform.localPosition = pos;
        startpos                = pos;
        //  camera = GameObject.Find("TopViewCamera").camera;

        analogGlitch  = GetComponent <Kino.AnalogGlitch>();
        digitalGlitch = GetComponent <Kino.DigitalGlitch>();
        timer         = 0;
        effectsValue  = 0;
    }
Example #9
0
 // Start is called before the first frame update
 void Awake()
 {
     glitchAnalog  = Camera.main.GetComponent <Kino.AnalogGlitch>();
     glitchDigital = Camera.main.GetComponent <Kino.DigitalGlitch>();
 }
Example #10
0
 // Use this for initialization
 void Start()
 {
     glitch = gameObject.GetComponent <Kino.AnalogGlitch>();
 }
Example #11
0
 void Awake()
 {
     analogue = GetComponent <Kino.AnalogGlitch> ();
     digital  = GetComponent <Kino.DigitalGlitch> ();
 }
Example #12
0
 private void Start()
 {
     digitalGlitch = GetComponent <Kino.DigitalGlitch>();
     analogGlitch  = GetComponent <Kino.AnalogGlitch>();
     StartCoroutine(GlitchOverTimeRoutine());
 }