My for loop is not working and after checking Unity documentation and forums I have not found a solution. Here is the code:
using UnityEngine;
using System.Collections;
public class Spawner : MonoBehaviour {
public int numPlat;
public GameObject PlatformToSpawn;
// Use this for initialization
void Start () {
Debug.Log("Number" + numPlat);
spawnStuff();
}
// Update is called once per frame
void Update () {
}
public void spawnStuff()
{
for (int i = 0; i > numPlat; i++)
{
Debug.Log("ds");
}
}
}