Example #1
0
    // Use this for initialization
    void Start()
    {
        GameObject aiueo;

        aiueo = GameObject.Find("tintin");
        money = aiueo.GetComponent <okane>();
    }
Example #2
0
    void Start()
    {
        speed = Random.Range(20, 40);
        GetComponent <Rigidbody2D>().velocity = transform.up.normalized * speed;

        GameObject aiueo;

        aiueo = GameObject.Find("tintin");
        money = aiueo.GetComponent <okane>();
    }