Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
LEM-II\Ilja committed Jan 22, 2017
1 parent 7fd9444 commit 4eab3f7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions GGJ17/Assets/Script/Blocks/Building/Building_Barracks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,36 @@

public class Building_Barracks : AbstractBaseBuilding {

public float EffectiveRange = 5;
public float AlertCheckIntervall = 1f;
public float AtackIntervall = 0.5f;
public bool isAlerted;

// Use this for initialization
void Awake () {
BuildingBlockInit bbi = new BuildingBlockInit();
bbi.up = bbi.down = true;
bbi.sides = false;
Init(bbi);
}

void Update()
{
if (!isAlerted)
{
Collider[] cc = Physics.OverlapBox(transform.position, new Vector3(EffectiveRange, 20, EffectiveRange));
foreach(Collider c in cc)
{
if(c.tag == "Enemy")
{

}
}
}
}

public IEnumerator OnAlert()
{

}
}

0 comments on commit 4eab3f7

Please sign in to comment.