﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using TTMouseclickSimulator.Core.Environment;

namespace TTMouseclickSimulator.Core.ToontownRewritten.Environment
{

    /// <summary>
    /// Environment interface for Toontown Rewritten.
    /// </summary>
    public class TTRWindowsEnvironment : AbstractWindowsEnvironment
    {
        private const string ProcessName = "TTREngine";

        public static TTRWindowsEnvironment Instance = new TTRWindowsEnvironment();

        private TTRWindowsEnvironment()
        {

        }

        public override Process FindProcess()
        {
            return FindProcessByName(ProcessName);
        }
    }
}

﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using TTMouseclickSimulator.Core.Environment;

namespace TTMouseclickSimulator.Core.ToontownRewritten.Environment
{

    /// <summary>
    /// Environment interface for Toontown Rewritten.
    /// </summary>
    public class TTRWindowsEnvironment : AbstractWindowsEnvironment
    {
        private const string ProcessName = "TTREngine";

        public static TTRWindowsEnvironment Instance { get; } = new TTRWindowsEnvironment();

        private TTRWindowsEnvironment()
        {

        }

        public override Process FindProcess()
        {
            return FindProcessByName(ProcessName);
        }
    }
}

Fix the singleton instance field.
Fix the singleton instance field.
