Node.spawnOnce

Spawn an object using its ID only once. Second time you call this method for the same id, nothing happens. Returns old/new node reference.

  1. T spawnOnce(T node, string id, bool start)
  2. T spawnOnce(string id, bool start)
    class Node
    T
    spawnOnce
    (
    T : Node
    )
    (
    string id
    ,
    bool start = true
    )

Meta