// Use this for initialization void Start () { pDet = transform.parent.GetComponent<ColDetect>(); pMove = GetComponent<PolecatMovement>(); }
void Start() { speed = walkSpeed; UserPl = Root.GetComponent<UserPlayer>(); rootCol = Root.GetComponent<ColDetect>(); }