// Use this for initialization void Start() { main = Camera.main; PlayerIdentity playerIdentity = GetComponentInParent <PlayerIdentity>(); if (!playerIdentity.IsMyPlayer()) { this.enabled = false; return; } main.transform.position = this.transform.position; main.transform.rotation = this.transform.rotation; }