// Use this for initialization void Start() { cdp = GameObject.FindGameObjectWithTag("stationpoint").GetComponent <CalDistancePlayer>(); cd = GameObject.FindGameObjectWithTag("Cha1").GetComponent <CharacterData>(); cm = GameObject.FindGameObjectWithTag("Cha1").GetComponent <CharMove>(); cuolt = GameObject.FindGameObjectWithTag("CoinUIsOnLeftTop").GetComponent <CoinUIOnLeftTop>(); position = GameObject.FindGameObjectWithTag("legpoint"); v = this.transform.position; }
// 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>(); }
// 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; }
// Use this for initialization void Start() { targetObject = GameObject.FindGameObjectWithTag("coinuionlefttop"); //추적할 오브젝트 cuolt = GameObject.FindGameObjectWithTag("CoinUIsOnLeftTop").GetComponent <CoinUIOnLeftTop>(); posTarget = targetObject.transform.position + new Vector3(0, 0, 0); //추적할 오브젝트의 좌표를 받아옴 fireTime = Time.fixedTime; float anispeed = Random.Range(0.7f, 1); //0.7~1 사이의 랜덤값을 this.gameObject.GetComponent <Animator>().speed = anispeed; //생성될 물체(동전)의 애니메이션 재생 속도로 선언 int random = Random.Range(0, 100); //랜덤값을 이용, 1.오른쪽 2.왼쪽 3.직선 방향으로 이동할 지 정한다 homingAngleV = Random.Range(300, 500); //랜덤값을 이용, 호밍 각도 변화량을 정한다 speedA = Random.Range(40, 60); //랜덤값을 이용, 초기 이동속도를 정한다 if (random >= 0 && random <= 33) //왼족 회전 이동시 { left = true; right = false; straight = false; homingAngle = 90.0f; } else if (random >= 34 && random <= 66) //오른쪽 회전 이동시 { left = false; right = true; straight = false; homingAngle = 0.0f; } else { left = false; right = false; straight = true; } if (straight) //직선 이동시 { int random1 = Random.Range(300, 350); speedA += random1; } }
// Use this for initialization void Start() { cuolt = GameObject.FindGameObjectWithTag("CoinUIsOnLeftTop").GetComponent <CoinUIOnLeftTop>(); }
// Use this for initialization void Start() { cuolt = GameObject.FindGameObjectWithTag("CoinUIsOnLeftTop").GetComponent <CoinUIOnLeftTop>(); sctu = GameObject.Find("CoinShooter").GetComponent <SootingCoinsToUI>(); asct = GameObject.Find("AddOrSubCoinsText").GetComponent <AddSubCoinsText>(); }
// Use this for initialization void Start() { cuolt = GameObject.FindGameObjectWithTag("CoinUIsOnLeftTop").GetComponent <CoinUIOnLeftTop>(); ewb = GameObject.Find("ExitWButton").GetComponent <ExitWButton>(); addorsubcointext = gameObject.GetComponent <TextMesh>(); }