public MyClass() { object1 = new SomeObject(); object2 = new AnotherObject(); object1.AThreadedEvent += ThreadedEventHandler1; object2.AnotherThreadedEvent += ThreadedEventHandler2; }
public AnObject() { NameAsField = "(Field name)"; Name = "Name of the object"; AnotherObject = new AnotherObject() { OtherName = "Name of the other", IntegerField = 90 }; }
// Use this for initialization void Start() { anotherbject = GetComponent <AnotherObject> (); //Debug.Log (anotherbject.iniPublic); }
public void RemoveAnotherObject(AnotherObject obj) { // Remove it from the list }
public void AddAnotherObject(AnotherObject obj) { // Add it to the list }