public void ActivateObject(OverSeerControl activeO, RoomManager theRoomManager) { if (activeO == null) { print("dsadsada"); } activeOverseer = activeO; if (activeOverseer.GetNumTrap() < 4) { //hacky fun CmdSetTrapActive(true); if (runner1 != null) { runner1.CmdActivateTrap(gameObject.name); } if (runner2 != null) { runner2.CmdActivateTrap(gameObject.name); } activeOverseer.CmdTrap(trapID, true); GameObjectVisible(true); activeOverseer.CmdTrapSelect(trapNum); activeOverseer.ObjectiveActivate(ref currentObjectID, GetRoomID()); Reshuffle(theRoomManager); } }
public void roleChose(OverSeerControl script) { script.camChoice = !script.camChoice; //script2.spawnIn = false; this.camChoice = script.camChoice; Debug.Log(camChoice); }
public void TreasureOnClick(Texture[] theImages, OverSeerControl theOverseer, RoomManager theRoomManager) { minigame.GetComponent <Objective>().ActivateObject(theOverseer, theRoomManager);//, theOverseer); minigame.GetComponent <Objective>().UpdateSprites(theImages); }