Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        //Get the ElectroField from the game world
        ElectroObject = GameObject.Find("ElectroField");
        soundManager  = GameObject.Find("SoundController").GetComponent <UITriggerSound>();

        moveRight = true;
        moveUp    = true;

        if (transform.localScale.x < MaxScale || transform.localScale.y < MaxScale)
        {
            ScaleUp = true;
        }
        else if (transform.localScale.x > MinScale || transform.localScale.y > MinScale)
        {
            ScaleUp = false;
        }
    }