void Start() { nombreDePositionDuTour = tourDeGarde.Length; actuelPositionDuTour = 0; speed = normalSpeed; startPosition = transform.position; rigiBoy = GetComponent <Rigidbody2D>(); fov = GetComponent <FieldOfViewGarde>(); lastKnownPosition = transform.position; }
// Use this for initialization void Start() { mesh = GetComponent <MeshFilter>().mesh; fow = GetComponentInParent <FieldOfViewGarde>(); }