Beispiel #1
0
    void LateUpdate()
    {
        if (selected)
        {
            if (nma.hasPath)
            {
                CameraView.RefreshPath(nma.path.corners, nma.remainingDistance);
                pathEnabled = true;
            }
            else if (pathEnabled)
            {
                CameraView.DisablePath();
                pathEnabled = false;
            }
        }
        Vector3 myPos = myTrans.position;
        Vector3 fwd   = myTrans.forward;

        Debug.DrawLine(myPos, myPos + 5 * fwd, Color.green);
        if (aiming)
        {
            AimShoot(lastAimPos);
        }
    }