Beispiel #1
0
    private void AdjustTargetPos()
    {
        float   weaponHeight    = TriggerImpl.GetWeaponHeight(this.gameObject);
        Vector3 adjustTargetPos = Script_Util.AdjustTargetPos(
            this.gameObject.transform,
            TargetPos,
            Camera.main.transform,
            weaponHeight,
            GunRotate);

        //Debug.Log(string.Format("AdjustTargetPos TargetPos:{0} adjustTargetPos:{1} weaponHeight:{2}",
        //  TargetPos, adjustTargetPos, weaponHeight));
        TriggerImpl.SetFacePos(this.gameObject, adjustTargetPos, YRotateRange);
    }