// 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; } }
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; }
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); }