// Use this for initialization void Start() { GameObject aiueo; aiueo = GameObject.Find("tintin"); money = aiueo.GetComponent <okane>(); }
void Start() { speed = Random.Range(20, 40); GetComponent <Rigidbody2D>().velocity = transform.up.normalized * speed; GameObject aiueo; aiueo = GameObject.Find("tintin"); money = aiueo.GetComponent <okane>(); }