void Awake() { // setup singleton if (singleton == null) { singleton = this; } else if (singleton != this) { Destroy(gameObject); } }
public override void Init(GSData data) { base.Init(data); NodeObjectBuilder.Preload(this.asset, Type.Gatherable); // preload asset }