コード例 #1
0
ファイル: CanSeeObject.cs プロジェクト: sebbn/IceAge-Unity
        // Draw the line of sight representation within the scene window
        public override void OnDrawGizmos()
        {
            if (fieldOfViewAngle == null || viewDistance == null)
            {
                return;
            }

            bool is2D = false;

#if !(UNITY_4_0 || UNITY_4_0_1 || UNITY_4_1 || UNITY_4_2)
            is2D = usePhysics2D;
#endif
            MovementUtility.DrawLineOfSight(Owner.transform, fieldOfViewAngle.Value, viewDistance.Value, is2D);
        }
コード例 #2
0
 public virtual void OnDrawGizmos()
 {
     MovementUtility.DrawLineOfSight(((Component)((Task)this).get_Owner()).get_transform(), this.offset.get_Value(), this.fieldOfViewAngle.get_Value(), this.angleOffset2D.get_Value(), this.viewDistance.get_Value(), this.usePhysics2D);
 }
コード例 #3
0
 // Draw the line of sight representation within the scene window
 public override void OnDrawGizmos()
 {
     MovementUtility.DrawLineOfSight(Owner.transform, offset.Value, fieldOfViewAngle.Value, angleOffset2D.Value, viewDistance.Value, usePhysics2D);
 }