示例#1
0
 protected void Start()
 {
     cRigid = GetComponent <Rigidbody2D>();
     cPath  = GetComponent <AI_Pathfind>();
     cSeePC = GetComponent <AI_SeePC>();
     rPC    = FindObjectOfType <PC_Cont>();
 }
示例#2
0
    void Start()
    {
        cPather = GetComponent <AI_Pathfind>();
        cSeePC  = GetComponent <AI_SeePC>();
        cRigid  = GetComponent <Rigidbody2D>();

        _pathList = cPather.FFindPath(transform.position, rPC.transform.position);
    }