Photon Pun - Unity Example Project

Hello,

Im currently working on a Photon Example Project.

It should be a small collection with usefull Example on How to do things.
  • Photon Player Properties Extension
  • Custom Room Properties Extension
  • Login Menu
  • Lobby Menu
  • Room overview
  • Creating Room
  • Map Selectiom
  • Gamemode Selection
I appreciate any Suggestion and Help to Improve this Project.

https://github.com/SradnickDev/Photon-Example

Comments

  • S_OliverS_Oliver
    edited August 2
    @JohnTube
    I thought of better talking here instead of in an random Thread.

    1. Oh I thought it would bebe ok but np, next Update I gonna delete pun from the repo

    2.
    https://github.com/SradnickDev/Photon-Example/tree/master/Assets/Menu-Network/Extensions

    Just small example gonna extend this later
  • I Updated my Project.



    I added NamePlates, HealthBars ,Health System and simple RaycastShooting.

  • In Unity 2018.2.2f1 error CS0101:The namespace `global::' already contain a definition for `XXX'
  • Hello @k3921 ,
    I downloaded the newst Unity Version and my Project from GitHub and didnt get this Error.
    You should know thats this is a full Project not just a Package to import in an Existing Project.

    It should atm work out of the Box.Wich will change with the next Update.
  • @S_Oliver
    Yes, I downloaded full project from github, and I open it full project either, not import to other project. it show me couple of this error.
  • Show me Errors please
  • Assets/Scripts/Extensions/PlayerExtension.cs(11,21): error CS0101: The namespace `global::' already contains a definition for `PlayerExtension'

    Assets/Menu-Network/RoomOverview/Scripts/CreateRoom.cs(7,14): error CS0101: The namespace `global::' already contains a definition for `CreateRoom'
    Assets/Menu-Network/RoomOverview/Scripts/Lobby.cs(7,14): error CS0101: The namespace `global::' already contains a definition for `Lobby'
    Assets/Menu-Network/RoomOverview/Scripts/MapButton.cs(4,14): error CS0101: The namespace `global::' already contains a definition for `MapButton'
    Assets/Menu-Network/RoomOverview/Scripts/RoomPanel.cs(4,14): error CS0101: The namespace `global::' already contains a definition for `RoomPanel'
    Assets/Scripts/Extensions/PlayerExtension.cs(6,14): error CS0101: The namespace `global::' already contains a definition for `PlayerProperties'
    Assets/Scripts/Extensions/PlayerExtension.cs(11,21): error CS0101: The namespace `global::' already contains a definition for `PlayerExtension'
    Assets/Scripts/Extensions/RoomExtension.cs(7,14): error CS0101: The namespace `global::' already contains a definition for `RoomProperties'
    Assets/Scripts/Extensions/RoomExtension.cs(15,21): error CS0101: The namespace `global::' already contains a definition for `RoomExtension'
    Assets/Scripts/Gamemode/Gamemode.cs(9,13): error CS0101: The namespace `global::' already contains a definition for `Mode'
    Assets/Scripts/Gamemode/Gamemode.cs(11,14): error CS0101: The namespace `global::' already contains a definition for `Gamemode'

  • I think you have the Project two times in your Folder.
    Just download it fresh from GitHub and open a Project Scene directly.
  • Update :smile:
    Check out the Readme
    https://github.com/SradnickDev/Photon-Example/blob/master/README.md

    Cleaned up the Project abit more.
    - Added a new Map
    - Added a simple RPC based Chat


Sign In or Register to comment.