Exemplo n.º 1
0
    void FixedUpdate()
    {
        if (PointOfInterest == null)
        {
            if (FollowCam.S.pointOfInterest != null)
            {
                if (FollowCam.S.pointOfInterest.tag == "Projectile")
                {
                    PointOfInterest = FollowCam.S.pointOfInterest;
                }
                else
                {
                    return;
                }
            }
            else
            {
                return;
            }
        }

        AddPoint();
        if (PointOfInterest.GetComponent <Rigidbody>().IsSleeping())
        {
            PointOfInterest = null;
        }
    }
Exemplo n.º 2
0
 void FindEndPoint()
 {
     patronAgent.destination = endPoint.GetComponent <Transform>().position;
     PleaseGodKillme         = true;
     curPoint.hasPatron      = false;
 }