Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (FirstPlay != false)
            {
                hash ^= FirstPlay.GetHashCode();
            }
            if (FirstRequest != false)
            {
                hash ^= FirstRequest.GetHashCode();
            }
            if (ParentalApproval != false)
            {
                hash ^= ParentalApproval.GetHashCode();
            }
            if (PermissionGranted != false)
            {
                hash ^= PermissionGranted.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
         //DontDestroyOnLoad(this.gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }