This repository was archived by the owner on Mar 7, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLocalHuman.cs
More file actions
92 lines (75 loc) · 2.34 KB
/
LocalHuman.cs
File metadata and controls
92 lines (75 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
using HumanoidAPI.HumanData;
using UnityEngine;
namespace HumanoidAPI;
/// <summary>
/// Human the Local Player Uses
/// </summary>
public static class LocalHuman
{
/// <summary>
/// Human Object
/// </summary>
public static Human Data;
/// <summary>
/// Human Root Object
/// </summary>
public static GameObject Human;
/// <summary>
/// Game Camera
/// </summary>
public static GameObject Camera;
/// <summary>
/// Root of the Rig/Ragdoll
/// </summary>
public static GameObject RigRoot;
/// <summary>
/// The Actual True position of the Player
/// </summary>
public static GameObject MovementReference;
/// <summary>
/// Ragdoll
/// </summary>
public static GameObject Ragdoll;
public static GameObject Hips;
public static GameObject Waist;
public static GameObject Chest;
public static GameObject Head;
/// <summary>
/// HumanArm Object containing the Left Arm
/// </summary>
public static HumanArm LeftArm;
/// <summary>
/// HumanArm Object containing the Right Arm
/// </summary>
public static HumanArm RightArm;
/// <summary>
/// HumanLeg Object containing the Left Leg
/// </summary>
public static HumanLeg LeftLeg;
/// <summary>
/// HumanLeg Object containing the Right Leg
/// </summary>
public static HumanLeg RightLeg;
/// <summary>
/// Check, if any object is null
/// </summary>
/// <returns>True if there is any object that is not set, False if all objects are set</returns>
public static bool IsAnyNull()
{
if (Data == null) { return true; }
if (Human == null) { return true; }
if (Camera == null) { return true; }
if (RigRoot == null) { return true; }
if (MovementReference == null) { return true; }
if (Ragdoll == null) { return true; }
if (Hips == null) { return true; }
if (Waist == null) { return true; }
if (Chest == null) { return true; }
if (Head == null) { return true; }
if (LeftArm == null) { return true; }
if (LeftLeg == null) { return true; }
if (RightArm == null) { return true; }
if (RightLeg == null) { return true; }
return false;
}
}