public void ParentTypeChildObject() { ParentClass child = new ChildClass(); ParentClass brother = new BrotherClass(); Log(child); Log(brother); }
private void Log(BrotherClass brother) { Debug.Log("子类兄弟Log,对象 = " + brother); }