コード例 #1
0
 /// <summary>
 /// Allows the user view to go to the target when a button or shortcut is clecked
 /// </summary>
 /// <param name="model"></param>
 internal void GoToTarget(IdentityModel model)
 {
     if (model.identityType == IdentityType.Government)
     {
         galaxyView = true;
         galaxy.GalaxyView();
         transform.position = new Vector3(data.stars[model.solarIndex].galacticPosition.x, data.stars[model.solarIndex].galacticPosition.y, -10);
     }
 }