Example #1
0
        private void SpawnChaseObject()
        {
            GameObject prefab;

            if ((prefab = dataManager.GetChaseObjectPrefab()) != null)
            {
                chaseController = (GameObject.Instantiate(prefab) as GameObject).GetComponent <ChaseController>();
            }
        }