Пример #1
0
 // Use this for initialization
 void Start()
 {
     cuolt = GameObject.FindGameObjectWithTag("CoinUIsOnLeftTop").GetComponent <CoinUIOnLeftTop>();
     cd    = GameObject.FindGameObjectWithTag("Cha1").GetComponent <CharacterData>();
     cm    = GameObject.FindGameObjectWithTag("Cha1").GetComponent <CharMove>();
     hl    = GameObject.FindGameObjectWithTag("effect").GetComponent <Heallight>();
     sccu  = GameObject.Find("SavingCoinCounter").GetComponent <SavingCoinCounterUI>();
     wc    = GameObject.Find("GameSaveWindow").GetComponent <WindowCol>();
     cl    = GameObject.Find("ColForStation").GetComponent <ColforLand>();
     sb    = GameObject.Find("SaveButton").GetComponent <SaveButton>();
 }
Пример #2
0
    void Start()
    {
        heallight = GameObject.FindGameObjectWithTag("effect").GetComponent <Renderer>();
        gep       = GameObject.FindGameObjectWithTag("station").GetComponent <GiveEnergy2Player>();
        cdp       = GameObject.FindGameObjectWithTag("stationpoint").GetComponent <CalDistancePlayer>();
        cd        = GameObject.FindGameObjectWithTag("Cha1").GetComponent <CharacterData>();
        cm        = GameObject.FindGameObjectWithTag("Cha1").GetComponent <CharMove>();
        sccu      = GameObject.Find("SavingCoinCounter").GetComponent <SavingCoinCounterUI>();
        wc        = GameObject.Find("GameSaveWindow").GetComponent <WindowCol>();
        cl        = GameObject.Find("ColForStation").GetComponent <ColforLand>();
        sb        = GameObject.Find("SaveButton").GetComponent <SaveButton>();
        sctu      = GameObject.Find("CoinShooter").GetComponent <SootingCoinsToUI>();
        asct      = GameObject.Find("AddOrSubCoinsText");
        A         = GameObject.FindGameObjectWithTag("legpoint");

        v      = this.transform.position;
        callwa = true;
    }