コード例 #1
0
    void Awake()
    {
        Instance = this;
        CyberspaceBattlefield.Current = new CyberspaceBattlefield();
        StrategyConsole.Initialize(consoleText);
        OxygenConsumer.Instance.IsConsumingSlowly = true;

        foreach(Machine m in CyberspaceBattlefield.Current.CurrentNetwork.Machines)
        {
            MachineStrategyAnchor foundA = GameObject.Find(m.Name).GetComponent<MachineStrategyAnchor>();
            Anchors.Add(foundA);
            foundA.myMachine = m;
            if (m.Name.ToLower() == "gatewaymachine")
            {
                CurrentMachine = m;
                CurrentAnchor = foundA;
                CurrentFocus = foundA.transform;
            }
        }
        RefreshAVButton();
    }
コード例 #2
0
 private void SecurityLevelStart()
 {
     InputScript = GameObject.Find("StrategyMove").GetComponent<CyberspaceDroneInput>();
     AIRenderer.Instance.Output(AIRenderer.RIState.Talking, "This subnetwork has a maglock controller on it somewhere.", false, true);
     AIRenderer.Instance.Output(AIRenderer.RIState.Talking, "We'll have to remove the infection by starting some antivirus programs.", false, true);
     AIRenderer.Instance.Output(AIRenderer.RIState.Talking, "Let's move off of the gateway machine, and over to that other machine.", false, true);
     AIRenderer.Instance.Output(AIRenderer.RIState.Talking, "[Click] on the name of the other machine, the infected one.", true, true);
     isWaitingForMachineMove = true;
 }