public void UseThing(ThingUser user) { SendMessage("ClearUsableThing"); if (!wasPolished) { wasPolished = true; GameState.Instance.PolishedStatue(); } }
public void UseThing(ThingUser user) { GameObject obj = Instantiate(prayerPrefab); Prayer prayer = obj.GetComponent<Prayer>(); prayer.scroll = this; prayer.goalText = prayerText; SendMessage("ClearUsableThing"); }
public void UseThing(ThingUser user) { user.RemoveEquipment(); equipment.transform.parent = transform.parent; equipment.transform.localPosition = new Vector3(0, 1, 0); equipment.transform.localRotation = Quaternion.identity; equipment.GetComponentInChildren<SpriteRenderer>().sortingOrder = 0; SendMessage("ClearUsableThing"); }
public void UseThing(ThingUser user) { SendMessage("ClearUsableThing"); GameState.Instance.RemoveDirt(transform.position); Destroy(gameObject); }
public void UseThing(ThingUser user) { user.AddEquipment(equipment); SendMessage("ClearUsableThing"); }