// Use this for initialization
	void Start () {
		if(this.gameObject.name.Equals("HeartPositiveFeedback")) {
			Debug.Log("EHRE");
			HeartInstance = this;
		}
		if(this.gameObject.name.Equals("LungPositiveFeedback")) {
			LungInstance = this;
		}
		if(this.gameObject.name.Equals("LegPositiveFeedback")) {
			LegInstance = this;
		}
	}
Example #2
0
        public virtual PositiveFeedback AddPositiveFeedback(string userId, string itemId, bool isTest = false)
        {
            User u = AddUser(userId);
            Item i = AddItem(itemId);

            var pf = new PositiveFeedback(u, i);
            pf.IsTest = false;

            PositiveFeedbacks.Add(pf);
            u.PositiveFeedbacks.Add(pf);
            i.PositiveFeedbacks.Add(pf);

            return pf;
        }
Example #3
0
        public virtual PositiveFeedback AddPositiveFeedback(string userId, string itemId, bool isTest = false)
        {
            User u = AddUser(userId);
            Item i = AddItem(itemId);

            var pf = new PositiveFeedback(u, i);

            pf.IsTest = false;

            PositiveFeedbacks.Add(pf);
            u.PositiveFeedbacks.Add(pf);
            i.PositiveFeedbacks.Add(pf);

            return(pf);
        }