private void Initialize(GameObject prefab) { ILinked linked = prefab.GetComponent <ILinked>(); if (linked != null) { linked.SetLink(this); } }
private void Initialize(T asset) { ILinked linked = asset as ILinked; if (linked != null) { linked.SetLink(this); } }
private void Initialize(T scriptable) { if (scriptable == null) { return; } ILinked linked = scriptable as ILinked; if (linked != null) { linked.SetLink(this); } }