PlayerInteraction.Start C# (CSharp) Method

Start() private method

private Start ( ) : void
return void
    void Start()
    {
        rb = gameObject.GetComponent<Rigidbody> ();
        pc = gameObject.GetComponent<PlayerControls> ();
        foreach (GameObject pad in GameObject.FindGameObjectsWithTag("Bouncy")) {
            Material currMat = pad.GetComponent<MeshRenderer>().material;
            currMat.EnableKeyword("_EMISSION");
            currMat.SetColor("_EmissionColor", Color.black);
        }
        bounceVector = new Vector3 (0, bouncyForce, 0);
    }