Exemple #1
0
 private void UpdateMap()
 {
     //IL_002e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0033: Unknown result type (might be due to invalid IL or missing references)
     //IL_003a: Unknown result type (might be due to invalid IL or missing references)
     //IL_003f: Unknown result type (might be due to invalid IL or missing references)
     //IL_004f: Unknown result type (might be due to invalid IL or missing references)
     //IL_0054: Unknown result type (might be due to invalid IL or missing references)
     //IL_0076: Unknown result type (might be due to invalid IL or missing references)
     //IL_007b: Unknown result type (might be due to invalid IL or missing references)
     //IL_007c: Unknown result type (might be due to invalid IL or missing references)
     //IL_0087: Unknown result type (might be due to invalid IL or missing references)
     //IL_008c: Unknown result type (might be due to invalid IL or missing references)
     //IL_008e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0095: Unknown result type (might be due to invalid IL or missing references)
     if (!(mapRoot == null))
     {
         if (MonoBehaviourSingleton <ScreenOrientationManager> .IsValid())
         {
             float mapScale = mapRoot.GetMapScale();
             mapRoot.get_gameObject().get_transform().set_localScale(Vector2.op_Implicit(new Vector2(mapScale, mapScale)));
             Vector2 sonarScale = mapRoot.GetSonarScale();
             if (mapRoot.directionSonar != null)
             {
                 mapRoot.directionSonar.get_transform().set_localScale(Vector2.op_Implicit(sonarScale));
             }
         }
         Rect mapAreaRect = CalcMapAreaRect();
         UpdateMapCenter(mapAreaRect);
         UpdateMapVisibleArea(mapAreaRect);
     }
 }
Exemple #2
0
    private void PlaySonarEffect(SONAR_DIR dir, Vector3 pos, float size)
    {
        //IL_0006: Unknown result type (might be due to invalid IL or missing references)
        //IL_0032: Unknown result type (might be due to invalid IL or missing references)
        //IL_0037: Unknown result type (might be due to invalid IL or missing references)
        //IL_0057: Unknown result type (might be due to invalid IL or missing references)
        //IL_0067: Unknown result type (might be due to invalid IL or missing references)
        sonarTexture.set_localPosition(pos);
        float   num        = size / 100f * mapRoot_.GetMapScale() * mapRoot_.GetSonarOffset();
        Vector3 localScale = sonarTexture.get_localScale();

        sonarTexture.set_localScale(new Vector3(localScale.x * num, localScale.y * num, localScale.z));
        sonarDirEffect.get_gameObject().SetActive(true);
        RotateSonarEffect(dir);
    }