public static void ShareShot(string param) { GameObject main = GameObject.Find("main"); CallEvent e = main.GetComponent <CallEvent>(); e.ShareShot(param); }