Skip to content
Snippets Groups Projects
Commit d13cb2c8 authored by Julflips's avatar Julflips
Browse files

Deleted unnecessary files

parent deba8184
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
fileFormatVersion: 2
guid: ecfc6427d78e7204ea62d8def7da5aad
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: f2c69c81d788e30478b6b87936120776
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ExitGames.Client.Photon;
using Photon.Pun;
using TMPro;
public class roleMain : MonoBehaviourPun
{
public GameObject roleSelection;
public List<String> roles = new List<string>();
public GameObject patientButton;
public GameObject employeeButton;
public GameObject doctorButton;
public TextMeshPro title1;
public TextMeshPro title2;
public GameObject mainWindow;
private List<String> otherRoles = new List<string>(new String[] { "patient", "employee", "doctor" });
public void setRole(string r)
{
Debug.Log("Selected Role: " + r);
roles.Add(r);
otherRoles.Remove(r);
if (r == "patient")
{
patientButton.SetActive(false);
}
if (r == "doctor")
{
doctorButton.SetActive(false);
}
if (r == "employee")
{
employeeButton.SetActive(false);
}
}
public void submit()
{
if (roles.Count > 0)
{
roleSelection.SetActive(false);
if (roles.Count == 1)
{
title1.text = otherRoles[0];
title2.text = otherRoles[1];
}
if (roles.Count == 2)
{
title1.text = otherRoles[0];
title2.text = "";
}
mainWindow.SetActive(true);
}
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: 42614a6a8283c7e439bf82353cd363bd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: cbecaa2158a83ce4d9e4a21a12839b4b
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
using System;
using System.Collections;
using System.Collections.Generic;
using ExitGames.Client.Photon;
using UnityEngine;
using Photon.Pun;
public class rec : MonoBehaviourPun
{
private const byte requestSend = 0;
private void OnEnable()
{
PhotonNetwork.NetworkingClient.EventReceived += OnEvent;
}
private void OnDisable()
{
PhotonNetwork.NetworkingClient.EventReceived -= OnEvent;
}
private void OnEvent(EventData obj)
{
Debug.Log("Received");
if (obj.Code == requestSend)
{
string[] data = (string[])obj.CustomData;
Debug.Log("Message: " + (string)data[0] + ", " + (string)data[1]);
}
}
private void OnTriggerEnter(Collider other)
{
Debug.Log("Collision");
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: a901277bbb2aad844ad5ad4315168d6d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System.Collections;
using System.Collections.Generic;
using System.Runtime.ExceptionServices;
using ExitGames.Client.Photon;
using Photon.Pun;
using Photon.Realtime;
using UnityEngine;
public class send : MonoBehaviourPun
{
private string[] array = {"first", "second"};
private const byte requestSend = 0;
public void sendArray()
{
Debug.Log("Sending");
//object[] content = new object[] { 1, 2, 3 };
RaiseEventOptions x = RaiseEventOptions.Default;
x.Receivers = ReceiverGroup.Others;
//PhotonNetwork.RaiseEvent(requestSend, array, x, SendOptions.SendUnreliable);
}
}
fileFormatVersion: 2
guid: 02769f478174edc419d67ef6d69c0f70
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: c5c6c627ea1e2434281560e23e492bf1
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment