コード例 #1
0
ファイル: cyanGRControl.cs プロジェクト: JPen3/Color-Game
    // Use this for initialization
    void Start()
    {
        GameObject playerObject = GameObject.FindGameObjectWithTag ("Player");
        rLObject = playerObject.GetComponent<roomsLoaded> ();

        GameObject doorCyan = GameObject.FindGameObjectWithTag ("doorGRCyan");
        cEObject = doorCyan.GetComponent<cyanGRExit> ();

        rLObject.setGreenLock (false);
    }
コード例 #2
0
ファイル: cyanGRInk.cs プロジェクト: JPen3/Color-Game
    // Use this for initialization
    void Start()
    {
        GameObject playerObject = GameObject.FindGameObjectWithTag ("Player");
        iPObject = playerObject.GetComponent<itemPickup> ();
        particleSystem.enableEmission = false;

        GameObject doorMagenta = GameObject.FindGameObjectWithTag ("doorGRCyan");
        cEObject = doorMagenta.GetComponent<cyanGRExit> ();

        //ParticleSystem inkFallSystem = (ParticleSystem)gameObject.GetComponent ("inkFallSystem");
        //inkFallSystem.enableEmission = false;
    }