コード例 #1
0
    // Use this for initialization
    void Start()
    {
        cfg = Config.GetInstance();

        count            = 0;
        currentTime      = 0;
        lastTime         = 0;
        currentAltitude  = 0;
        lastAltitude     = 0;
        climingSpeed     = 0;
        lastClimingSpeed = 0;
        InfoWindow.SetScrollView(logWindow);

        altitudeGraph.marginLeft = 30;
        altitudeGraph.Init(45 * 60, 0f, 35000f);
        altitudeGraph.AddAxes(new Vector2[] { new Vector2(0, 0), new Vector2(0, 1), new Vector2(0, 0), new Vector2(1, 0) });

        climingSpeedGraph.Init(45 * 60, 0f, 15f);
        climingSpeedGraph.AddAxes(new Vector2[] { new Vector2(0, 0), new Vector2(0, 1), new Vector2(0, 0f), new Vector2(1, 0f) });

        se = GetComponent <AudioSource>();
    }