Beispiel #1
0
        private void Awake()
        {
            if (!photonView.isMine)
            {
                return;
            }

            if (localThief != null)
            {
                Debug.LogError("Multiple instantiation of the local thief player.");
                PhotonExtends.Destroy(gameObject);
                return;
            }

            localThief = this;
        }
        private void Awake()
        {
            playerInstances.Add(GetComponent <PlayerController>());

            if (!photonView.isMine)
            {
                return;
            }

            if (localDetective != null)
            {
                Debug.LogError("Multiple instantiation of local detective.");
                PhotonExtends.Destroy(gameObject);
                return;
            }

            localDetective = this;
        }