コード例 #1
0
    void Start()
    {
        instance = this;

        polyColl = GetComponent <PolygonCollider2D>();
        capsColl = GetComponent <CapsuleCollider2D>();
    }
コード例 #2
0
 void Start()
 {
     total      = pathway.Count;
     target     = pathway[1];
     anim       = GetComponent <Animator>();
     player     = GameObject.Find("Bob (Player)");
     coll_tran  = coll.GetComponent <Transform>();
     collScript = coll.GetComponent <NurseCollider>();
 }