Class PlayerCustomizer
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class PlayerCustomizer : MonoBehaviour
- Inheritance
-
PlayerCustomizer
- Inherited Members
-
- Extension Methods
-
Constructors
PlayerCustomizer()
public PlayerCustomizer()
Fields
public Button applyButton
Field Value
- Button
applySound
public SFX_Instance applySound
Field Value
- SFX_Instance
backSound
public SFX_Instance backSound
Field Value
- SFX_Instance
public Button biggerFaceButton
Field Value
- Button
public Button clearHatButton
Field Value
- Button
clickSound
public SFX_Instance clickSound
Field Value
- SFX_Instance
colorSelectorPrefab
public GameObject colorSelectorPrefab
Field Value
- GameObject
colorsRoot
public GameObject colorsRoot
Field Value
- GameObject
colorsToPickFrom
public List<Color> colorsToPickFrom
Field Value
- List<Color>
enterSound
public SFX_Instance enterSound
Field Value
- SFX_Instance
faceSizeMinMax
public Vector2 faceSizeMinMax
Field Value
- Vector2
faceSizeStepCount
public int faceSizeStepCount
Field Value
- int
faceText
public TextMeshProUGUI faceText
Field Value
- TextMeshProUGUI
hatAtStart
Field Value
- Hat
hatNameText
public TextMeshProUGUI hatNameText
Field Value
- TextMeshProUGUI
headColor
public ProceduralImage headColor
Field Value
- ProceduralImage
leaveSound
public SFX_Instance leaveSound
Field Value
- SFX_Instance
public Button leftHatButton
Field Value
- Button
Field Value
- Button
playerInTerminal
public Player playerInTerminal
Field Value
- Player
Field Value
- Button
public Button rightHatButton
Field Value
- Button
public Button rotateLeftButton
Field Value
- Button
public Button rotateRightButton
Field Value
- Button
rotateSound
public SFX_Instance rotateSound
Field Value
- SFX_Instance
selectedColor
public ColorSelector selectedColor
Field Value
- ColorSelector
selectedHat
Field Value
- Hat
sizeSound
public SFX_Instance sizeSound
Field Value
- SFX_Instance
public Button smallerFaceButton
Field Value
- Button
startColorIndex
public int startColorIndex
Field Value
- int
startFaceRotation
public float startFaceRotation
Field Value
- float
startFaceSize
public float startFaceSize
Field Value
- float
startFaceText
public string startFaceText
Field Value
- string
startHeadColor
public Color startHeadColor
Field Value
- Color
typeSound
public SFX_Instance typeSound
Field Value
- SFX_Instance
unlockedHats
public List<int> unlockedHats
Field Value
- List<int>
view_g
Field Value
- PhotonView
visorFaceSizeMinMax
public Vector2 visorFaceSizeMinMax
Field Value
- Vector2
Properties
FaceRotation
public float FaceRotation { get; set; }
Property Value
- float
FaceSize
public float FaceSize { get; set; }
Property Value
- float
HasPlayerInTerminal
public bool HasPlayerInTerminal { get; }
Property Value
- bool
SelectedColor
public ColorSelector SelectedColor { get; set; }
Property Value
- ColorSelector
SelectedHat
public Hat SelectedHat { get; set; }
Property Value
- Hat
Methods
Awake()
EnterTerminal(PhotonView)
public void EnterTerminal(PhotonView playerView)
Parameters
playerView
PhotonView
FaceSizeUiToVisor(float)
public float FaceSizeUiToVisor(float uiSize)
Parameters
uiSize
float
Returns
- float
FaceSizeVisorToUi(float)
public float FaceSizeVisorToUi(float visorSize)
Parameters
visorSize
float
Returns
- float
OnApply()
OnChangeFaceSize(bool)
public void OnChangeFaceSize(bool smaller)
Parameters
smaller
bool
OnChangeHat(bool)
public void OnChangeHat(bool right)
Parameters
right
bool
OnDestroy()
OnQuit()
OnRotate(bool)
public void OnRotate(bool right)
Parameters
right
bool
RCP_SetFaceText(string)
[PunRPC]
public void RCP_SetFaceText(string text)
Parameters
text
string
RPCA_ChangeFaceSize(bool)
[PunRPC]
public void RPCA_ChangeFaceSize(bool smaller)
Parameters
smaller
bool
RPCA_EnterTerminal(int)
[PunRPC]
public void RPCA_EnterTerminal(int playerId)
Parameters
playerId
int
RPCA_PickColor(int)
[PunRPC]
public void RPCA_PickColor(int childNumber)
Parameters
childNumber
int
RPCA_PickHat(int)
[PunRPC]
public void RPCA_PickHat(int hatIndex)
Parameters
hatIndex
int
RPCA_PlayerLeftTerminal(bool)
[PunRPC]
public void RPCA_PlayerLeftTerminal(bool apply)
Parameters
apply
bool
RPCA_RotateFaceText(bool)
[PunRPC]
public void RPCA_RotateFaceText(bool right)
Parameters
right
bool
RPCA_SyncEverything(int, int, string, float, float, int)
[PunRPC]
public void RPCA_SyncEverything(int playerId, int colorIndex, string faceText, float faceRotation, float faceSize, int hatIndex)
Parameters
playerId
int
colorIndex
int
faceText
string
faceRotation
float
faceSize
float
hatIndex
int
RPCM_RequestEnterTerminal(int)
[PunRPC]
public void RPCM_RequestEnterTerminal(int playerId)
Parameters
playerId
int
RemoveNavigation()
public void RemoveNavigation()
RunTerminal()
public void RunTerminal()
SpawnColors()
public void SpawnColors()
Update()