Beispiel #1
0
 void OnDrawGizmos()
 {
     // NOTE(Julian): For debug visualization in Unity editor
     if (!Application.isPlaying && WorldManager.g != null)
     {
         if (_rotationController != null)
         {
             if (!IsCached)
             {
                 Cache();
             }
             if (!_rotationController.IsCached)
             {
                 _rotationController.Cache();
             }
             ;
             Gizmos.color = Color.green;
             Gizmos.DrawLine(_rotationController.Location.ToVector3() * WorldManager.g.TileSize,
                             _worldEntity.Location.ToVector3() * WorldManager.g.TileSize);
         }
     }
 }