protected void Start() { cRigid = GetComponent <Rigidbody2D>(); cPath = GetComponent <AI_Pathfind>(); cSeePC = GetComponent <AI_SeePC>(); rPC = FindObjectOfType <PC_Cont>(); }
void Start() { cPather = GetComponent <AI_Pathfind>(); cSeePC = GetComponent <AI_SeePC>(); cRigid = GetComponent <Rigidbody2D>(); _pathList = cPather.FFindPath(transform.position, rPC.transform.position); }