public ToolBot() { this.References = new GameReferences(); this.InfoBarController = new InfoBarController(); this.State = new StateSystem(); this.OverwatchSystem = new OverwatchSystem(); this.HackingSystem = new HackingSystem(); this.HackingSystem.SetReferences(this.References); this.HackingSystem.Setup(); this.HackingSystem.OnStateChange += this.State.SetState; this.MyComputerSystem = new MyComputerSystem(); this.MyComputerSystem.SetReferences(this.References); this.MyComputerSystem.Setup(); this.MyComputerSystem.OnPortAGetInfo += this.InfoBarController.SetMyComputerPortA; this.MyComputerSystem.OnPortBGetInfo += this.InfoBarController.SetMyComputerPortB; this.MyComputerSystem.OnPortCGetInfo += this.InfoBarController.SetMyComputerPortC; this.BlackMarketSystem = new BlackMarketSystem(); this.BlackMarketSystem.SetReferences(this.References); this.BlackMarketSystem.Setup(); this.DataMinerSystem = new DataMinerSystem(); this.DataMinerSystem.SetReferences(this.References); this.DataMinerSystem.Setup(); this.DataMinerSystem.OnBTCoinChange += this.InfoBarController.SetBTCoin; this.DataMinerSystem.OnBTCoinChange += this.MyComputerSystem.SetBTCoin; this.DataMinerSystem.OnBTCoinChange += this.BlackMarketSystem.SetBTCoin; this.DataMinerSystem.OnBTCoinGainChange += this.InfoBarController.SetBTCoinGain; this.DataMinerSystem.OnBTCoinGainChange += this.MyComputerSystem.SetBTCoinGain; this.DataMinerSystem.OnBTCoinGainChange += this.BlackMarketSystem.SetBTCoinGain; }
void Start() { hackingSys = GetComponent <HackingSystem>(); //To avoid repetition when entering new commands for (int i = 0; i < voids.Length; i++) { voids[i] = "void" + " " + voids[i].ToString() + "()"; Debug.Log(voids[i]); } }
protected override void ClientInteractStart(ClientObjectData data) { HackingSystem.ClientTryStartAction(); }
protected override void ClientInteractFinish(ClientObjectData data) { HackingSystem.ClientTryAbortAction(); }