private bool AllowedWhenCrouching(PromptOwnerType ownerType) { return(ownerType == PromptOwnerType.Door); }
private bool AllowedWhenCrawling(PromptOwnerType ownerType) { return(false); }
private void Awake() { bool student = this.Student; this.MinimumDistanceSqr = this.MinimumDistance; this.MaximumDistanceSqr = this.MaximumDistance; this.DistanceSqr = float.PositiveInfinity; this.OwnerType = this.DecideOwnerType(); if (this.RaycastTarget == null) { this.RaycastTarget = base.transform; } if (this.OffsetZ.Length == 0) { this.OffsetZ = new float[4]; } if (this.Yandere == null) { this.YandereObject = GameObject.Find("YandereChan"); if (this.YandereObject != null) { this.Yandere = this.YandereObject.GetComponent <YandereScript>(); } } if (this.Yandere != null) { this.PauseScreen = this.Yandere.PauseScreen; this.PromptParent = this.Yandere.PromptParent; this.UICamera = this.Yandere.UICamera; this.MainCamera = this.Yandere.MainCamera; if (this.Noisy) { this.Speaker = UnityEngine.Object.Instantiate <GameObject>(this.SpeakerObject, base.transform.position, Quaternion.identity).GetComponent <UISprite>(); this.Speaker.transform.parent = this.PromptParent.transform; this.Speaker.transform.localScale = new Vector3(1f, 1f, 1f); this.Speaker.transform.localEulerAngles = Vector3.zero; this.Speaker.enabled = false; } this.Square = UnityEngine.Object.Instantiate <GameObject>(this.PromptParent.SquareObject, base.transform.position, Quaternion.identity).GetComponent <UISprite>(); this.Square.transform.parent = this.PromptParent.transform; this.Square.transform.localScale = new Vector3(1f, 1f, 1f); this.Square.transform.localEulerAngles = Vector3.zero; Color color = this.Square.color; color.a = 0f; this.Square.color = color; this.Square.enabled = false; this.ID = 0; while (this.ID < 4) { if (this.ButtonActive[this.ID]) { this.Button[this.ID] = UnityEngine.Object.Instantiate <GameObject>(this.ButtonObject[this.ID], base.transform.position, Quaternion.identity).GetComponent <UISprite>(); UISprite uisprite = this.Button[this.ID]; uisprite.transform.parent = this.PromptParent.transform; uisprite.transform.localScale = new Vector3(1f, 1f, 1f); uisprite.transform.localEulerAngles = Vector3.zero; uisprite.color = new Color(uisprite.color.r, uisprite.color.g, uisprite.color.b, 0f); uisprite.enabled = false; this.Circle[this.ID] = UnityEngine.Object.Instantiate <GameObject>(this.CircleObject, base.transform.position, Quaternion.identity).GetComponent <UISprite>(); UISprite uisprite2 = this.Circle[this.ID]; uisprite2.transform.parent = this.PromptParent.transform; uisprite2.transform.localScale = new Vector3(1f, 1f, 1f); uisprite2.transform.localEulerAngles = Vector3.zero; uisprite2.color = new Color(uisprite2.color.r, uisprite2.color.g, uisprite2.color.b, 0f); uisprite2.enabled = false; this.Label[this.ID] = UnityEngine.Object.Instantiate <GameObject>(this.LabelObject, base.transform.position, Quaternion.identity).GetComponent <UILabel>(); UILabel uilabel = this.Label[this.ID]; uilabel.transform.parent = this.PromptParent.transform; uilabel.transform.localScale = new Vector3(1f, 1f, 1f); uilabel.transform.localEulerAngles = Vector3.zero; uilabel.color = new Color(uilabel.color.r, uilabel.color.g, uilabel.color.b, 0f); uilabel.enabled = false; if (this.Suspicious) { uilabel.color = new Color(1f, 0f, 0f, 0f); } uilabel.text = " " + this.Text[this.ID]; } this.AcceptingInput[this.ID] = true; this.ID++; } this.BloodMask = 2; this.BloodMask |= 4; this.BloodMask |= 512; this.BloodMask |= 8192; this.BloodMask |= 16384; this.BloodMask |= 65536; this.BloodMask |= 2097152; this.BloodMask = ~this.BloodMask; } }