// Use this for initialization void Start() { MPGameManager mgr = GameObject.FindObjectOfType <MPGameManager>(); if (!mgr.isServer) { this.gameObject.transform.position = new Vector3(x, y, z); this.gameObject.transform.Rotate(new Vector3(0, 180, 0)); } }
private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); }