Ejemplo n.º 1
0
    void Start()
    {
        GameObject ScriptHolder = GameObject.Find("ScriptHolder");

        PopUp = ScriptHolder.GetComponent <PointPopUp>();
        ContinuePlayingWindow = ScriptHolder.GetComponent <ContinuePlayingWindow>();
        thisSceneController   = ScriptHolder.GetComponent <LevelSceneController>();
        sizeChange            = gameObject.GetComponent <SizeChange>();
    }
Ejemplo n.º 2
0
    // Update is called once per frame
    void Update()
    {
        if (Ground.transform.position.y > this.transform.position.y)
        {
            SizeChange.ResetAll();

            FindObjectOfType <GameManager>().EndGame();
        }
    }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        nav = GetComponent<NavMeshAgent> ();

                //col = GetComponentInChildren<SphereCollider> ();
                col = GetComponent<SphereCollider> ();
                speech = GetComponentInChildren<TextMesh> ();
                player = GameObject.FindGameObjectWithTag ("Player");
                //state = (int)SizeChange.State.LARGE; // big

                sc = player.GetComponent<SizeChange> ();
    }
Ejemplo n.º 4
0
        internal void PrivateSizeChangeEvent(object sender, SizeChangeEventArgs e)
        {
            OnSizeChange(sender, e);

            SizeChange?.Invoke(sender, e);
        }
Ejemplo n.º 5
0
 public static void OnSizeChange(double height, double width)
 {
     SizeChange?.Invoke(height, width);
 }
Ejemplo n.º 6
0
 // Use this for initialization
 void OnTriggerEnter(Collider other)
 {
     SizeChange.ResetAll();
     FindObjectOfType <GameManager> ().EndGame();
     Destroy(other.gameObject);
 }