|
|
@ -1,16 +1,16 @@ |
|
|
|
using System.Collections; |
|
|
|
using System.Collections.Generic; |
|
|
|
using UnityEngine; |
|
|
|
using Networking.Client; |
|
|
|
using Networking.Server; |
|
|
|
|
|
|
|
public class FloatingOnWater : MonoBehaviour |
|
|
|
{ |
|
|
|
bool characterInWater = true; |
|
|
|
public ConnectedClients clientData; |
|
|
|
private List<string> Names; |
|
|
|
public ClientList clientData; |
|
|
|
public List<string> Names = new List<string>(); |
|
|
|
public GameObject lilypad; |
|
|
|
GameObject player; |
|
|
|
string charName = "Character"; |
|
|
|
string charName; |
|
|
|
public bool triggeranimate; |
|
|
|
public bool triggeranimate1; |
|
|
|
|
|
|
@ -31,9 +31,9 @@ public class FloatingOnWater : MonoBehaviour |
|
|
|
|
|
|
|
private void Start() |
|
|
|
{ |
|
|
|
for(int i = 0; i < clientData.AllClients.Count; i++) |
|
|
|
for(int i = 0; i < clientData.ConnectedClients.Count; i++) |
|
|
|
{ |
|
|
|
Names.Add(clientData.AllClients[i].characterAnimal + "(Clone)"); |
|
|
|
Names.Add(clientData.ConnectedClients[i].characterAnimal + "(Clone)"); |
|
|
|
} |
|
|
|
} |
|
|
|
void OnTriggerEnter(Collider other) |
|
|
|