Stuff
This commit is contained in:
@@ -173,7 +173,8 @@ public class Client : MonoBehaviour
|
||||
script.dice = dice;
|
||||
script.camera = cam;
|
||||
script.imageCurrentItem = imageCurrentItem;
|
||||
|
||||
script.textName = playerNameTexts[job.data[5]];
|
||||
|
||||
//ITEM INFO IMAGES
|
||||
Image[] temp = new Image[3];
|
||||
|
||||
@@ -206,6 +207,7 @@ public class Client : MonoBehaviour
|
||||
script.dice = dice;
|
||||
script.camera = cam;
|
||||
script.imageCurrentItem = imageCurrentItem;
|
||||
script.textName = playerNameTexts[job.data[5]];
|
||||
|
||||
//ITEM INFO IMAGES
|
||||
Image[] temp = new Image[3];
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class GameCamera : MonoBehaviour
|
||||
{
|
||||
public static GameObject gObject;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
gObject = gameObject;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1b0524290b57a8b45b31ee4a5c0dc391
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -5,7 +5,13 @@ using UnityEngine;
|
||||
public class NamesText : MonoBehaviour
|
||||
{
|
||||
public float orgY;
|
||||
private GameObject camera;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
camera = GameCamera.gObject;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
@@ -24,6 +24,8 @@ public class NoPlayablePlayer : Player
|
||||
private Vector3 useLess = new Vector3();
|
||||
|
||||
private bool checkDoubleDice = false;
|
||||
|
||||
public TMP_Text textName;
|
||||
|
||||
//Animation:
|
||||
private Vector3 lastPosAnim = Vector3.zero;
|
||||
@@ -97,6 +99,7 @@ public class NoPlayablePlayer : Player
|
||||
|
||||
public void Wurfeln(int wurfelZahl)
|
||||
{
|
||||
textName.gameObject.SetActive(true);
|
||||
diceScript.SetMaterial(0);
|
||||
|
||||
jumpRequest = true;
|
||||
|
||||
@@ -33,6 +33,8 @@ public class PlayablePlayer : Player
|
||||
public Client client;
|
||||
|
||||
private static PlayablePlayer instance;
|
||||
|
||||
public TMP_Text textName;
|
||||
|
||||
//Animation:
|
||||
private Vector3 lastPosAnim = Vector3.zero;
|
||||
@@ -51,8 +53,6 @@ public class PlayablePlayer : Player
|
||||
diceScript = dice.GetComponent<Dice>();
|
||||
|
||||
instance = this;
|
||||
|
||||
AddItem(client.items[2]);
|
||||
}
|
||||
|
||||
public static PlayablePlayer GetCurrentInstance()
|
||||
@@ -99,6 +99,7 @@ public class PlayablePlayer : Player
|
||||
{
|
||||
if (!Physics.Raycast(new Vector3(Input.mousePosition.x, Input.mousePosition.y, -200), Vector3.forward))
|
||||
{
|
||||
textName.gameObject.SetActive(true);
|
||||
DiceRollRoutine();
|
||||
}
|
||||
}
|
||||
@@ -114,7 +115,7 @@ public class PlayablePlayer : Player
|
||||
jumpRequest = true;
|
||||
|
||||
wurfelt = true;
|
||||
wurfelZahl = Random.Range(1, 7);
|
||||
wurfelZahl = Random.Range(4, 5);
|
||||
|
||||
switch (activeItem)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user