-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMonoStuff.cs
More file actions
43 lines (41 loc) · 1.74 KB
/
Copy pathMonoStuff.cs
File metadata and controls
43 lines (41 loc) · 1.74 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
using System;
using CoreLib;
using CoreLib.Util;
using UnityEngine;
namespace PainMod
{
public class MonoStuff : MonoBehaviour
{
public MonoStuff(IntPtr ptr) : base(ptr) { }
public PlayerController myPlayer;
public bool isInit = false;
public void Update()
{
if (CoreLib.State.IsInGame())
{
if (CoreLib.Players.GetAllPlayers().Count != 0)
{
myPlayer = CoreLib.Players.GetCurrentPlayer();
CoreLib.Players.GetCurrentPlayer().SetInvincibility(true);
if (!isInit)
{
myPlayer.playerInventoryHandler.CreateItem(0, ObjectID.OctarineMiningPick, 1,
myPlayer.WorldPosition, 0);
myPlayer.playerInventoryHandler.CreateItem(0, ObjectID.HiveMotherScanner, 1,
myPlayer.WorldPosition, 0);
isInit = true;
}
}
CoreLib.GameManagers.GetMainManager()._menuManager.creditsMenu.title.textString = "Lever is gaymer";
CoreLib.GameManagers.GetMainManager()._menuManager.creditsMenu.title.color = Color.Lerp(Color.red, Color.blue, 1);
CoreLib.GameManagers.GetMainManager().player.UpdateGreatWall();
CoreLib.GameManagers.GetMainManager().player.playerCanInteractWithGreatWall = true;
//CoreLib.GameManagers.GetMainManager().player.greatWallHasBeenLowered = true;
if (!CoreLib.GameManagers.GetMainManager().player.greatWallHasBeenLowered)
{
TheGreatWallSystem.LowerGreatWall();
}
}
}
}
}