using System.Collections; using System.Collections.Generic; using UnityEngine; public class watergun : MonoBehaviour { public XFS Xfs; public GameObject water; // Start is called before the first frame update void Start() { Xfs=this.transform.parent.GetComponent(); } // Update is called once per frame void Update() { } }