예제 #1
0
    // Use this for initialization
    protected virtual void Start()
    {
        this.gun    = new BasicGun(this);
        controller  = new BillController(this);
        leftOrRight = 0;
        health      = 3;

        billHealth = GameObject.Find("BillHealth").GetComponent <GUIText>();

        if (godMode)
        {
            health = 1000;
        }

        startingHeight = renderer.bounds.size.y;
        startingWidth  = renderer.bounds.size.x;

        if (Application.loadedLevelName == "Level_2")
        {
            leftBoundary  = 0.8f;
            rightBoundary = 0.8f;
        }

        Respawn();

        if (Application.loadedLevelName == "Level_1")
        {
            heatmap = GetComponent <HeatMap> ();

            string p_string = "Contra Bill Progresssion Level 1";
            string d_string = "Contra Bill Death Level 1";

            progressionTag = new HeatTag("p_string", url);
            progressionTag.SetSorted();
            progressionTag.MapPointColorDelta = ProgressionMapColorDelta;

            deathTag      = new HeatTag("d_string", url);
            deathTag.Type = HeatTag.HeatType.POINT;

            if (TrackPlayer)
            {
                heatmap.TrackPlayer(this.gameObject, progressionTag, 0.2f);
            }

            if (ShowHeatMap)
            {
                heatmap.PlotData(progressionTag);
                heatmap.PlotData(deathTag);
            }
        }
    }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        Respawn();
        heatmap = GetComponent <HeatMap> ();

        progressionTag = new HeatTag("Sample Progression 2", url);
        progressionTag.MapPointColorDelta = ProgressionMapColorDelta;

        deathTag      = new HeatTag("Sample Death 2", url);
        deathTag.Type = HeatTag.HeatType.POINT;

        if (TrackPlayer)
        {
            heatmap.TrackPlayer(this.gameObject, progressionTag, 0.2f);
        }

        if (ShowHeatMap)
        {
            heatmap.PlotData(progressionTag);
            heatmap.PlotData(deathTag);
        }
    }