Esempio n. 1
0
    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);
    }
Esempio n. 2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
 }