Author Topic: How to do TNManager.Create as GameObject?  (Read 1859 times)

Doomlazy

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 1
  • Posts: 28
    • View Profile
How to do TNManager.Create as GameObject?
« on: February 18, 2016, 08:52:58 AM »
I am trying to do this:
  1. myPlayer = TNManager.Create(playerPrefab, redPlayerSpawns[i].transform.position, redPlayerSpawns[i].transform.rotation, false) as GameObject;
but I just get this error:
Cannot convert type `void' to `UnityEngine.GameObject' via a built-in conversion
How can I do this?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile