// Use this for initialization void Start() { gameObject.transform.localScale = new Vector3(0.001f, 0.001f, 0.001f); pc = GameObject.FindGameObjectWithTag("Cha1").GetComponent <PauseCtrl>(); sb = GameObject.Find("SaveButton").GetComponent <SaveButton>(); sctu = GameObject.Find("CoinShooter").GetComponent <SootingCoinsToUI>(); }
// Use this for initialization void Start() { hl = GameObject.FindGameObjectWithTag("effect").GetComponent <Heallight>(); sctu = GameObject.Find("CoinShooter").GetComponent <SootingCoinsToUI>(); pb = GameObject.Find("PauseButton").GetComponent <PauseButton>(); cl = GameObject.Find("ColForStation").GetComponent <ColforLand>(); sb = GameObject.Find("SaveButton").GetComponent <SaveButton>(); ewb = GameObject.Find("ExitWButton").GetComponent <ExitWButton>(); cb = GameObject.Find("MazeCreator").GetComponent <CreateBlocks>(); }
// Use this for initialization void Start() { cl = GameObject.Find("ColForStation").GetComponent <ColforLand>(); wc = GameObject.Find("GameSaveWindow").GetComponent <WindowCol>(); sd = GameObject.FindGameObjectWithTag("station").GetComponent <StationData>(); cuolt = GameObject.FindGameObjectWithTag("CoinUIsOnLeftTop").GetComponent <CoinUIOnLeftTop>(); sctu = GameObject.Find("CoinShooter").GetComponent <SootingCoinsToUI>(); cd = GameObject.FindGameObjectWithTag("Cha1").GetComponent <CharacterData>(); hl = GameObject.FindGameObjectWithTag("effect").GetComponent <Heallight>(); CurrentSprite = this.gameObject.GetComponent <SpriteRenderer>().sprite; }
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; }
// Use this for initialization void Start() { cuolt = GameObject.FindGameObjectWithTag("CoinUIsOnLeftTop").GetComponent <CoinUIOnLeftTop>(); sctu = GameObject.Find("CoinShooter").GetComponent <SootingCoinsToUI>(); asct = GameObject.Find("AddOrSubCoinsText").GetComponent <AddSubCoinsText>(); }