Jump to content
Unity Insider Forum

Photon und das Tutorial cjrgaming.com


Recommended Posts

Hallo,

 

Und zwar habe ich ein problem mit Photon & Unity3d. Ich mache das Tutorial auf cjrgaming.com (http://www.cjrgaming.com/node/17) jedoch habe ich dort ein hänger. Ich Habe die 4 Klassen angelegt, die dll in Unity gesteckt. Jedoch bekomme ich nun trozdem fehlermeldungen wie:

IGameState.cs(9,41): error CS0246: The type or namespace name `EventCode' could not be found. Are you missing a using directive or an assembly reference?

und so weiter.

 

Hier einmal IGameState.cs:

using System;
using System.Collections;
using AuroraCommon;
using ExitGames.Client.Photon;

public interface IGameState
{
   GameState State { get; }

   void OnEventReceive(Game gameLogic, EventCode eventCode, Hashtable eventData);

   void OnOperationReturn(Game gameLogic, OperationCode operationCode, int returnCode, Hashtable returnValues);

   void OnPeerStatusCallback(Game gameLogic, StatusCode returnCode);

   void OnUpdate(Game gameLogic);

   void SendOperation(Game gameLogic, OperationCode operationCode, Hashtable parameter, bool sendReliable, byte channelId);
}

 

Und hier einmal ein Screen:

screenqi.png

 

 

danke :)!

Link zu diesem Kommentar
Auf anderen Seiten teilen

  • 4 weeks later...

huhu,

 

ich weiß nicht ob dein Problem noch besteht, aber falls doch probier mal:

 


using System;
using System.Collections;
using AuroraCommon;
using ExitGames.Client.Photon;

public interface IGameState
{
   GameState State { get; }

   void OnEventReceive(Game gameLogic, AuroraCommon.EventCode eventCode, Hashtable eventData);

   void OnOperationReturn(Game gameLogic, OperationCode operationCode, int returnCode, Hashtable returnValues);

   void OnPeerStatusCallback(Game gameLogic, StatusCode returnCode);

   void OnUpdate(Game gameLogic);

   void SendOperation(Game gameLogic, OperationCode operationCode, Hashtable parameter, bool sendReliable, byte channelId);
}

 

lg

 

seb

Link zu diesem Kommentar
Auf anderen Seiten teilen

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Auf dieses Thema antworten...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Lädt...
×
×
  • Neu erstellen...