-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildingBehavior.cs.orig
56 lines (42 loc) · 1.23 KB
/
BuildingBehavior.cs.orig
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class BuildingBehavior : MonoBehaviour {
Building building;
[SerializeField]
Building.BuildingType buildingType;
Resource resource;
[SerializeField]
public int extendsX = 2;
[SerializeField]
public int extendsZ = 2;
<<<<<<< Updated upstream
[SerializeField]
public List<Vector2> entrances;
public bool isActive;
void Awake(){
this.resource = GameObject.FindGameObjectWithTag ("ResourceManager").GetComponent<ResourceBehavior> ().resource;
this.building = new Building (buildingType);
}
// Use this for initialization
void Start () {
=======
[SerializeField]
public List<Vector2> entrances;
public bool isActive;
// Use this for initialization
void Start () {
this.resource = GameObject.FindGameObjectWithTag ("ResourceManager").GetComponent<ResourceBehavior> ();
this.building = new Building (buildingType);
>>>>>>> Stashed changes
if (buildingType == Building.BuildingType.Habitation)
isActive = true;
//resource.addBuilding (building);
}
// Update is called once per frame
void Update () {
}
public Building.BuildingType getType(){
return buildingType;
}
}