void Start() { Parent = GetComponentInParent <HunterMain> (); Trans = GameObject.FindGameObjectWithTag("PigTransformManager").GetComponent <PigTransformManagerScript> (); start = transform.localPosition; }
void Start() { Parent = GetComponentInParent <HunterMain> (); MaxTime = Parent.shotTime; }