Changed to 3D graphics, Adapted House and Chest
This commit is contained in:
@@ -34,23 +34,7 @@ public class Tile : MonoBehaviour
|
||||
|
||||
public void Update()
|
||||
{
|
||||
GameObject obj;
|
||||
GameObject player = GameObject.Find("Player");
|
||||
for (int i = 0; i < gameObject.transform.childCount; i++)
|
||||
{
|
||||
obj = gameObject.transform.GetChild(i).gameObject;
|
||||
if (!obj.GetComponent<Renderer>().enabled )
|
||||
{
|
||||
if (!deadEnemies.Contains(obj))
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!obj.tag.Contains("House") && obj.tag.Contains("Object"))
|
||||
{
|
||||
obj.transform.LookAt(new Vector3(player.transform.position.x, obj.transform.position.y, player.transform.position.z));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void setBorders()
|
||||
|
||||
Reference in New Issue
Block a user