Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class WateringCan : MonoBehaviour
- {
- void Update()
- {
- if (Input.GetButton("Water"))
- {
- Seed[] seeds = FindObjectsOfType<Seed>();
- foreach (Seed seed in seeds)
- {
- Debug.DrawLine(seed.transform.position, gameObject.transform.position, Color.blue, 2);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement