Advertisement
Guest User

Untitled

a guest
May 27th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. namespace Assets.Scripts.CoordinateSystems.Colliders
  2. {
  3.     public class TrajectoryCollider : CoordinateColliderBase
  4.     {
  5.         #region Interface
  6.  
  7.         public override void Init()
  8.         {
  9.             base.Init();
  10.  
  11.             var coordinateSystem = gameObject.GetComponentInParent<CoordinateSystem>();
  12.  
  13.             SizeProperty.Value = 1 / coordinateSystem.BaseCoordinateToUnitK;
  14.         }
  15.  
  16.         public override bool CheckViewFrustrum(ViewFrustum viewFrustum)
  17.         {
  18.             return true;
  19.         }
  20.  
  21.         #endregion
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement