// 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); }
// 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>(); }