using UnityEngine;
using System.Collections;
public class sc1 : MonoBehaviour {
public int Var1 =1;
public void Metod(){
print (Var1);
}
}
using UnityEngine;
using System.Collections;
public class sc2 : MonoBehaviour {
void Start()
{
GetComponent<sc1> ().Metod ();
}
}