Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        //Debug.Log("Elevator Script Activated :) !!!");
        startingPosition    = this.transform.position;
        NormalizedDirection = finalPosition - startingPosition;
        NormalizedDirection = Vector3.Normalize(NormalizedDirection);
        QbertScript         = GameObject.FindGameObjectWithTag("Qbert").GetComponent <Qbert_Script>();

        // Sounds
        SoundManagerReference = GameObject.FindObjectOfType <SoundManager>();
    }
    // Start is called before the first frame update
    void Start()
    {
        //Debug.Log("Coily Started");
        spriteRenderer.sprite = Idle;
        QbertScript           = GameObject.FindGameObjectWithTag("Qbert").GetComponent <Qbert_Script>();
        if (Qbert == null)
        {
            Qbert = GameObject.Find("Qbert");
        }
        //QbertScript.CheckAccessForScriptDebugPurposes();
        //Qbert.gameObject.GetComponent<Transform>().position = new Vector2(10f, 10f);

        // Sounds
        SoundManagerReference = GameObject.FindObjectOfType <SoundManager>();
        CoilyDeath            = false;
    }