Cleaned up a bit of code, need to work on camera handlign (Isn't as smooth as I want it to be)
This commit is contained in:
@@ -77,7 +77,7 @@ public class Tile : MonoBehaviour
|
||||
|
||||
if (chance >= 25)
|
||||
{
|
||||
GameObject content = contentGenerator.GetComponent<ContentGenerator>().generateContent(tiletype.ToString());
|
||||
GameObject content = contentGenerator.GetComponent<ContentGenerator>().generateContent(tiletype);
|
||||
if (content != null)
|
||||
{
|
||||
GameObject obj = Instantiate(content, position, Quaternion.identity, gameObject.transform);
|
||||
|
||||
Reference in New Issue
Block a user