// Use this for initialization void Start() { shooting = GetComponent <Shooting> (); HealText.SetActive(false); collectText.SetActive(false); collectScript = GetComponent <CollectSnow> (); }
void Start() { shooting = GetComponent <Shooting> (); CollectingUI.transform.parent.gameObject.SetActive(false); collectSnow = GetComponent <CollectSnow> (); camera = GetComponentInChildren <Camera> ().gameObject; }
// Use this for initialization void Start() { anim = GetComponent <Animator> (); shootingScript = GetComponent <Shooting> (); rb = GetComponent <Rigidbody> (); collectScript = GetComponent <CollectSnow> (); }
void Start() { shooting = GetComponent <Shooting> (); CollectingUI.transform.parent.gameObject.SetActive(false); health = GetComponent <Health> (); collect = GetComponent <CollectSnow> (); healScript = GetComponent <HealSnowmanProximity>(); }
void Start() { shooting = GetComponent <Shooting> (); collectSnow = GetComponent <CollectSnow> (); camera = GetComponentInChildren <Camera> ().gameObject; GetComponent <ParticleSystem> ().Stop(); BuildingProgressParent = BuildingProgress.transform.parent.gameObject; BuildingProgressParent.SetActive(false); animControl = GetComponent <SnowmanAnimationControl> (); }
//ActivateCannon active; // Use this for initialization void Start() { shooting = GetComponent <Shooting> (); movement = GetComponent <Movement> (); collectSnow = GetComponent <CollectSnow> (); collectFort = GetComponent <CollectSnowFort> (); aiming = GetComponent <Aiming> (); rb = GetComponent <Rigidbody>(); heal = GetComponent <HealSnowmanProximity>(); //active = GetComponent<ActivateCannon> (); }
void OnTriggerExit(Collider other2) { GameObject other = getParent(other2.gameObject); CollectSnow collecter = other.GetComponent <CollectSnow> (); if (collecter != null) { collecter.touchingSnowPile = false; collecter.snowPile = null; discovered = false; } }