public static void CB_COMP_SyncPlayer(GameObject target, ref List <string> log) { if (!target.GetComponent <SyncPlayer>()) { E_Helpers.AddInspectorTag("OtherPlayer"); E_Helpers.AddInspectorLayer("OtherPlayer"); if (log != null) { log.Add("Adding SyncPlayer Component to copied player"); } target.AddComponent <SyncPlayer>(); } E_CompHelper.AddCompToPhotonView(target, target.GetComponent <SyncPlayer>()); }