// Use this for initialization
 void Start()
 {
     shooting = GetComponent <Shooting> ();
     HealText.SetActive(false);
     collectText.SetActive(false);
     collectScript = GetComponent <CollectSnow> ();
 }
Beispiel #2
0
 void Start()
 {
     shooting = GetComponent <Shooting> ();
     CollectingUI.transform.parent.gameObject.SetActive(false);
     collectSnow = GetComponent <CollectSnow> ();
     camera      = GetComponentInChildren <Camera> ().gameObject;
 }
Beispiel #3
0
 // Use this for initialization
 void Start()
 {
     anim           = GetComponent <Animator> ();
     shootingScript = GetComponent <Shooting> ();
     rb             = GetComponent <Rigidbody> ();
     collectScript  = GetComponent <CollectSnow> ();
 }
Beispiel #4
0
 void Start()
 {
     shooting = GetComponent <Shooting> ();
     CollectingUI.transform.parent.gameObject.SetActive(false);
     health     = GetComponent <Health> ();
     collect    = GetComponent <CollectSnow> ();
     healScript = GetComponent <HealSnowmanProximity>();
 }
Beispiel #5
0
 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> ();
 }
Beispiel #6
0
    //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;
        }
    }