I'm trying to convert some scripts to Playmaker, but I'm still very green with the system.
I have the following script on on an empty gameObject called "Scripts."
using UnityEngine;
public class Generate : MonoBehaviour
{
public GameObject rocks;
// Use this for initialization
void Start()
{
InvokeRepeating("CreateObstacle", 1f, 1.5f);
}
void CreateObstacle()
{
Instantiate(rocks);
}
}
It instantiates a prefab for a side scrolling screen full of objects.
I have looked at the "Invoke Method" Action and played with some values, but I'm not getting it setup correctly.
Can someone give me a chair at the grown-ups table and point me in the right direction on how to convert this to Playmaker?
See attachment for my attempted setup, which give me this message:
Trying to Invoke method: Generate.CreateObstacle() couldn't be called.
Thanks,
-David