// Start is called before the first frame update
    void Start()
    {
        Texture2D path = this.gameObject.GetComponent <PlayerPath>().DrawPath();
        Texture2D map  = this.gameObject.GetComponent <MapOutput>().DrawMap();

        ImageMerger.MergeImages(map, path);
    }
Esempio n. 2
0
    public void SmashRock()
    {
        GetComponent <ParticleSystem>().Stop();
        GetComponent <HeartbeatAnim>().Disabled = true;
        Dying = true;
        Texture2D path = this.gameObject.GetComponent <PlayerPath>().DrawPath();
        Texture2D map  = this.gameObject.GetComponent <MapOutput>().DrawMap();

        ImageMerger.MergeImages(map, path);
        GameObject.Find("EventQueue").GetComponent <DynamicQueue>().NextEvent();
    }