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_Oliver
    S_Oliver ✭✭✭
    edited August 2018
    @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
  • S_Oliver
    S_Oliver ✭✭✭
    I Updated my Project.

    https://youtu.be/5-GrtIWJ9Bo

    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'
  • S_Oliver
    S_Oliver ✭✭✭
    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.
  • S_Oliver
    S_Oliver ✭✭✭
    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'

  • S_Oliver
    S_Oliver ✭✭✭
    I think you have the Project two times in your Folder.
    Just download it fresh from GitHub and open a Project Scene directly.
  • S_Oliver
    S_Oliver ✭✭✭
    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

    https://www.youtube.com/watch?v=dIsFA-h3I8I
  • I started to port this Project to Pun2.
    Also I plan to refactor most of the code and Structure. Posting Updates here as soon as I achieve some :D
  • Since the old Project doesn't exit anymore but i still need from time to time a way to create a quick Prototype, i started again.

    (only Pun 2) https://github.com/SradnickDev/Photon-Template

    It is a bit cleaner and hopefully simple enough to use it.
    Im going to add some new stuff from time to time.