private void CheckFreeShadow() { if (patrolman.CanPatrolmanGetNewPoint()) { if (playerPatrolPoint) { patrolman.SetPatrolPoint(playerPatrolPoint, 0); } } }
private void Start() { patrolman = GetComponent <Patrolman>(); if (playerPatrolPoint) { patrolman.SetPatrolPoint(playerPatrolPoint, 0); } }