Esempio n. 1
0
        public ProcessManager(Log _log, ToggleControls _toggleControls, string _path, string _args)
        {
            log            = _log;
            toggleControls = _toggleControls;

            psi = new ProcessStartInfo();
            psi.WorkingDirectory       = _path;
            psi.FileName               = program;
            psi.Arguments              = _args;
            psi.CreateNoWindow         = true;
            psi.UseShellExecute        = false;
            psi.RedirectStandardOutput = true;
            psi.RedirectStandardError  = true;
            psi.RedirectStandardInput  = true;
        }
    // Use this for initialization
    void Start()
    {
        trackedObject = viveCntrl.GetComponent <SteamVR_TrackedObject>();
        m_Toggle      = GetComponentInParent <ToggleControls>();

        //De-activate powers on Startup
        shield.gameObject.SetActive(false);
        pod.gameObject.SetActive(false);

        trail         = gameObject.GetComponentInChildren <TrailRenderer>();
        trail.enabled = false;

        resources = GetComponentInParent <ResourceManager>();

        if (healing == null)
        {
            healing = GameObject.Find("Healing");
        }
    }