summaryrefslogtreecommitdiff
path: root/Client/Assembly-CSharp/SabotageTask.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assembly-CSharp/SabotageTask.cs')
-rw-r--r--Client/Assembly-CSharp/SabotageTask.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/Client/Assembly-CSharp/SabotageTask.cs b/Client/Assembly-CSharp/SabotageTask.cs
new file mode 100644
index 0000000..2f3e21a
--- /dev/null
+++ b/Client/Assembly-CSharp/SabotageTask.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+
+public abstract class SabotageTask : PlayerTask
+{
+ protected bool didContribute;
+
+ public ArrowBehaviour[] Arrows;
+
+ public void MarkContributed()
+ {
+ this.didContribute = true;
+ }
+
+ protected void SetupArrows()
+ {
+ if (base.Owner.AmOwner)
+ {
+ List<global::Console> list = base.FindConsoles();
+ for (int i = 0; i < list.Count; i++)
+ {
+ int consoleId = list[i].ConsoleId;
+ this.Arrows[consoleId].target = list[i].transform.position;
+ this.Arrows[consoleId].gameObject.SetActive(true);
+ }
+ return;
+ }
+ for (int j = 0; j < this.Arrows.Length; j++)
+ {
+ this.Arrows[j].gameObject.SetActive(false);
+ }
+ }
+}