Example #1
0
 // Use this for initialization
 void Start()
 {
     cl            = GameObject.Find("ColForStation").GetComponent <ColforLand>();
     wc            = GameObject.Find("GameSaveWindow").GetComponent <WindowCol>();
     sb            = GameObject.Find("SaveButton").GetComponent <SaveButton>();
     sd            = GameObject.FindGameObjectWithTag("station").GetComponent <StationData>();
     cuolt         = GameObject.FindGameObjectWithTag("CoinUIsOnLeftTop").GetComponent <CoinUIOnLeftTop>();
     cd            = GameObject.FindGameObjectWithTag("Cha1").GetComponent <CharacterData>();
     sctu          = GameObject.Find("CoinShooter").GetComponent <SootingCoinsToUI>();
     hl            = GameObject.FindGameObjectWithTag("effect").GetComponent <Heallight>();
     asct          = GameObject.Find("AddOrSubCoinsText").GetComponent <AddSubCoinsText>();
     CurrentSprite = this.gameObject.GetComponent <SpriteRenderer>().sprite;
 }
Example #2
0
    // Use this for initialization
    void Start()
    {
        cointrans          = GameObject.FindGameObjectWithTag("coinuionlefttop").GetComponent <Transform>();
        coinrender         = GameObject.FindGameObjectWithTag("coinuionlefttop").GetComponent <Renderer>();
        numberrender       = GameObject.FindGameObjectWithTag("cointextuionlefttop").GetComponent <MeshRenderer>();
        addsubnumberrender = GameObject.Find("AddOrSubCoinsText").GetComponent <MeshRenderer>();
        gep  = GameObject.FindGameObjectWithTag("station").GetComponent <GiveEnergy2Player>();
        cdp  = GameObject.FindGameObjectWithTag("stationpoint").GetComponent <CalDistancePlayer>();
        cd   = GameObject.FindGameObjectWithTag("Cha1").GetComponent <CharacterData>();
        cm   = GameObject.FindGameObjectWithTag("Cha1").GetComponent <CharMove>();
        sb   = GameObject.Find("SaveButton").GetComponent <SaveButton>();
        asct = GameObject.Find("AddOrSubCoinsText").GetComponent <AddSubCoinsText>();
        pc   = GameObject.FindGameObjectWithTag("Cha1").GetComponent <PauseCtrl>();
        cl   = GameObject.Find("ColForStation").GetComponent <ColforLand>();
        A    = GameObject.FindGameObjectWithTag("legpoint");
        ewb  = GameObject.Find("ExitWButton").GetComponent <ExitWButton>();
        v    = this.transform.position;

        coinrender.material.color         = new Vector4(coinrender.material.color.r, coinrender.material.color.g, coinrender.material.color.b, 0f);
        numberrender.material.color       = new Vector4(numberrender.material.color.r, numberrender.material.color.g, numberrender.material.color.b, 0f);
        addsubnumberrender.material.color = new Vector4(addsubnumberrender.material.color.r, addsubnumberrender.material.color.g, addsubnumberrender.material.color.b, 0f);

        totalcoins = 0;
    }
Example #3
0
 // Use this for initialization
 void Start()
 {
     cuolt = GameObject.FindGameObjectWithTag("CoinUIsOnLeftTop").GetComponent <CoinUIOnLeftTop>();
     sctu  = GameObject.Find("CoinShooter").GetComponent <SootingCoinsToUI>();
     asct  = GameObject.Find("AddOrSubCoinsText").GetComponent <AddSubCoinsText>();
 }