```
    using UnityEngine;
    using System.Collections;
    using AssemblyCSharp.portal.www.com;

    public class Game5_Player: MonoBehaviour
    {
//string Logo;
        void Start ()
        {
            func webservice = new func ();//I should use new func(); so how should I use public func?
            //Logo= webservice.getCompanyLogo ();//this work correctly.I can get component Logo In another script but I want know how can I getcomponent my function.
        }
    }

```

why have I error when use Getcomponent In below?
other script:

```
using UnityEngine;
using System.Collections;
using AssemblyCSharp.portal.www.com;

public class MasterRange : MonoBehaviour {
        string Logo;
        void Start () {
        Game5_Player game5_Player = GameObject.FindGameObjectWithTag("Player").GetComponent<Game5_Player> ();
            Logo = game5_Player.webservice.getCompanyLogo;
        }
    }

```

error:

```
 Assets/MasterRange.cs(21,34): error CS0103: The name `webservice' does not exist in the current context

```

---

Is there any way to have a public new function?

```
using UnityEngine;
using System.Collections;
using AssemblyCSharp.portal.www.com;

public class ScriptA : MonoBehaviour {
string Logo;

public func webservice = new func();

void Start ()
{
    webservice();
    Logo = webservice.getCompanyLogo();
    }
}

```