void Awake() { // Getting player info GameObject infoObject = transform.Find("Info").gameObject; if (infoObject != null) { playerInfo = infoObject.GetComponent <Text>(); } // Getting photon view from player photonView = transform.GetComponent <PhotonView>(); photonView.AddCallbackTarget(this); playerEffects = new List <PlayerEffect>(); }