blob: 2f3e21ae13eca32c62754610f5312f5562bbfaa6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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);
}
}
}
|