예제 #1
0
    void Start()
    {
        nombreDePositionDuTour = tourDeGarde.Length;
        actuelPositionDuTour   = 0;

        speed         = normalSpeed;
        startPosition = transform.position;

        rigiBoy = GetComponent <Rigidbody2D>();
        fov     = GetComponent <FieldOfViewGarde>();

        lastKnownPosition = transform.position;
    }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     mesh = GetComponent <MeshFilter>().mesh;
     fow  = GetComponentInParent <FieldOfViewGarde>();
 }