Esempio n. 1
0
    void Start()
    {
        redBlueBotton = GameObject.Find("RedBotton");
        rBB           = redBlueBotton.GetComponent <RedBlueBotton>();

        player    = GameObject.Find("Player");
        playerCon = player.GetComponent <PlayerController>();
    }
Esempio n. 2
0
    void Start()
    {
        redBlueBotton = GameObject.Find("RedBotton");
        rBB           = redBlueBotton.GetComponent <RedBlueBotton>();
        oldRedBlue    = !rBB.redBlue;

        meshrenderer = this.GetComponent <MeshRenderer>();
        color        = meshrenderer.material.color;

        collider = this.GetComponent <Collider>();
    }