Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     SetStartPositionAndScale();
     sriteset = GetComponent <SpriteSet>();
     sriteset.SetSprite(Random.Range(1, 2));
     speed = Random.Range(0.001f, 0.005f);
 }
Exemplo n.º 2
0
Arquivo: Item.cs Projeto: Ramazoid/Ram
 // Start is called before the first frame update
 void Start()
 {
     SetStartPositionAndScale();
     sriteset = GetComponent <SpriteSet>();
     sriteset.SetSprite();
     speed = Random.Range(0.001f, 0.05f);
     game  = GameObject.FindObjectOfType <Game>();
 }