protected void SMSet(uLink.NetworkViewID masterViewID) { Facepunch.NetworkView networkView = Facepunch.NetworkView.Find(masterViewID); if (!networkView) { Debug.LogWarning("Couldnt find master view", this); } else { StructureMaster component = networkView.GetComponent <StructureMaster>(); if (!component) { Debug.LogWarning("No Master On GO", networkView); } else { component.AppendStructureComponent(this); } } }
protected void SMSet(NetworkViewID masterViewID) { NetworkView context = NetworkView.Find(masterViewID); if (context != null) { StructureMaster component = context.GetComponent <StructureMaster>(); if (component != null) { component.AppendStructureComponent(this); } else { Debug.LogWarning("No Master On GO", context); } } else { Debug.LogWarning("Couldnt find master view", this); } }