// Start is called before the first frame update void Start() { this.rigid2D = GetComponent <Rigidbody2D>(); this.animator = GetComponent <Animator>(); count = new CoinScript(); this.point = count.getPoint(); }
void Start() { this.animator = GetComponent <Animator>(); this.sr = GetComponent <SpriteRenderer>(); this.player = GameObject.Find("Player"); count = new CoinScript(); this.point = count.getPoint(); }
void Start() { this.kupa = GameObject.Find("kupa"); this.key = this.kupa.transform.localScale.x; count = new CoinScript(); this.point = count.getPoint(); print(this.key); }
// Update is called once per frame void Update() { this.time -= Time.deltaTime; this.timerText.GetComponent <Text>().text = this.time.ToString("F1"); point = count.getPoint(); if (this.point == 100) { point = 0; } this.pointText.GetComponent <Text>().text = this.point.ToString() + " coin"; }
// Start is called before the first frame update void Start() { this.animator = GetComponent <Animator>(); this.player = GameObject.Find("Player"); this.rigid2D = GetComponent <Rigidbody2D>(); this.sr = GetComponent <SpriteRenderer>(); this.blessGenerator = GameObject.Find("BlessGenerator"); this.script = blessGenerator.GetComponent <BlessGenerator>(); count = new CoinScript(); this.point = count.getPoint(); }
void Start() { count = new CoinScript(); this.point = count.getPoint(); }