Example #1
0
 // 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();
 }
Example #2
0
 void Start()
 {
     this.animator = GetComponent <Animator>();
     this.sr       = GetComponent <SpriteRenderer>();
     this.player   = GameObject.Find("Player");
     count         = new CoinScript();
     this.point    = count.getPoint();
 }
Example #3
0
 void Start()
 {
     this.kupa  = GameObject.Find("kupa");
     this.key   = this.kupa.transform.localScale.x;
     count      = new CoinScript();
     this.point = count.getPoint();
     print(this.key);
 }
Example #4
0
 // 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";
 }
Example #5
0
 // 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();
 }
Example #6
0
 void Start()
 {
     count      = new CoinScript();
     this.point = count.getPoint();
 }