Пример #1
0
    public RefClass1()
    {
        IS = this;

        this.a         = 10;
        this.b         = "abc";
        this.ref_test2 = 0.0f;
    }
Пример #2
0
    // Start is called before the first frame update
    void Start()
    {
        //ref string ref_test = ref Text_TRANS.GetComponent<TextMesh>().text;   //Not Supportted;

        ref_test = "aaaaaaaaaaaaaa";

        RefClass1 RC1 = new RefClass1();

        RC1.C_RC2();
    }
Пример #3
0
 //By default, = is getting the reference;
 public RefClass2(RefClass1 _refClass1)
 {
     this.RF1 = _refClass1;
 }