private ShaderBW toonShader;    //Holds toon shader

    // Start is called before the first frame update
    void Start()
    {
        toonShader = GetComponent <ShaderBW>();
        canMoveVer = false;

        if (canMoveVer == true)
        {
            changeDir = true;
        }

        cooldown = false;

        platSource = GetComponent <AudioSource>();
    }
Beispiel #2
0
    private ShaderBW toonShader;       //Holds toon shader

    // Start is called before the first frame update
    void Start()
    {
        toonShader = GetComponent <ShaderBW>();

        canChange    = true;
        cooldown     = false;
        changedColor = false;

        horizontal = false;
        vertical   = false;

        // red = true;
        // blue = true;

        platSource = GetComponent <AudioSource>();
    }
Beispiel #3
0
    public AudioClip activatedClip; //Play sfx when activated

    // Start is called before the first frame update
    void Start()
    {
        toonShader = GetComponent <ShaderBW>();

        isSticky = false;
        cooldown = false;

        //Find and get player
        GameObject inky = GameObject.FindGameObjectWithTag("Player");

        if (inky != null)
        {
            player = inky.GetComponent <Player3D>();
        }

        swSource = GetComponent <AudioSource>();
    }