Beispiel #1
0
        public bool belongsTo(EntityScript es, string parameter)
        {
            object entityParam = getParameter(parameter);

            if (entityParam == null || es == null)
            {
                return(false);
            }

            // Same as in entity but entity script comparition also.
            return(es.Equals(entityParam) || es.Entity.Equals(entityParam) || es.gameObject.Equals(entityParam) || es.tag.Equals(entityParam) || es.name.Equals(entityParam));
        }