예제 #1
0
 public void UseThing(ThingUser user) {
     SendMessage("ClearUsableThing");
     if (!wasPolished) {
         wasPolished = true;
         GameState.Instance.PolishedStatue();
     }
 }
예제 #2
0
 public void UseThing(ThingUser user) {
     GameObject obj = Instantiate(prayerPrefab);
     Prayer prayer = obj.GetComponent<Prayer>();
     prayer.scroll = this;
     prayer.goalText = prayerText;
     SendMessage("ClearUsableThing");
 }
예제 #3
0
 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");
 }
예제 #4
0
 public void UseThing(ThingUser user) {
     SendMessage("ClearUsableThing");
     GameState.Instance.RemoveDirt(transform.position);
     Destroy(gameObject);
 }
예제 #5
0
 public void UseThing(ThingUser user) {
     user.AddEquipment(equipment);
     SendMessage("ClearUsableThing");
 }