private void ManageViewObjectCreation(PacketCreateViewObject packet) { Debug.Log($"Create View Object | Id obj : {packet.LinkedGameObject.UniqueIdentifier} | Is local player : {packet.LinkedGameObject.IsLocalPlayer}"); // Create our view object GameObject viewObject = ViewObjectFactory.CreateViewObject(new ViewObjectCreateArgs(packet.LinkedGameObject)); m_viewObjects.Add(viewObject); }
private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } }