forked from ModTheGungeon/ETGMod
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayer.cs
More file actions
25 lines (20 loc) · 771 Bytes
/
Player.cs
File metadata and controls
25 lines (20 loc) · 771 Bytes
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
using UnityEngine;
public static partial class ETGMod {
/// <summary>
/// ETGMod player configuration.
/// </summary>
public static class Player {
public static bool GiveItemID(int id) {
if (!GameManager.Instance.PrimaryPlayer) {
Debug.Log ("Couldn't access PlayerController instance in GameManager");
return false;
}
LootEngine.TryGivePrefabToPlayer(PickupObjectDatabase.GetById(id).gameObject, GameManager.Instance.PrimaryPlayer, false);
return true;
}
public static bool? InfiniteKeys;
public static string QuickstartReplacement;
public static string PlayerReplacement;
public static string CoopReplacement;
}
}