void Awake() { if (WMachine == null) { WMachine = this; DontDestroyOnLoad(WMachine); } else if (WMachine != this) { Destroy (gameObject); } }
void Awake() { if (WMachine == null) { WMachine = this; DontDestroyOnLoad(WMachine); } else if (WMachine != this) { Destroy(gameObject); } }