コード例 #1
0
    // Use this for initialization

    void Start()
    {
        anim  = GetComponent <Animator> ();
        rb    = GetComponent <Rigidbody2D> ();
        audio = GetComponent <AudioSource> ();
        gcs   = GameObject.Find("game_control").GetComponent <Game_control_script> ();
        look  = GetComponent <SpriteRenderer> ();
    }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     anim = GetComponent <Animator> ();
     gcs  = GameObject.Find("game_control").GetComponent <Game_control_script> ();
 }