void Start() { life = 3; exp = 0; maxLife = 3; maxExp = 5; playerController = GetComponent <PlayerController> (); rifleInfo = FindObjectOfType <RifleInfo> (); uiLife = FindObjectOfType <UILife> (); uiExp = FindObjectOfType <UIExp> (); }
//load public override void Load() { //setup hotkeys for (int i = 0; i < NUMBER_OF_ABILITY_SLOTS; i++) { HOTKEY_ABILITY[i] = RegisterHotKey("Ability " + (i + 1), HOTKEY_DEFAULTS[i]); } HOTKEY_ALTERNATE_EFFECT = RegisterHotKey("Alternate Effect", "LeftShift"); uiExp = new UIExp(); uiExp.Activate(); myUserInterface = new UserInterface(); myUserInterface.SetState(uiExp); mod = this; }