Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        sprayController = sprayArmJoint.GetComponent <SprayController>();
        inputHandler    = character.GetComponent <InputHandler>();

        startScale = transform.localScale.y;
        bottom     = -startScale / 2;

        decreaseSpeed = 0.2f;
        increaseSpeed = 0.4f;

        gaugeMove = gameObject.transform.parent.gameObject.GetComponent <GaugeMove>();

        characterMover = character.GetComponent <CharacterMover>();

        sprite = GetComponent <SpriteRenderer>();
        print(sprite);
    }
Exemplo n.º 2
0
    void Start()
    {
        wiperController = WiperArmJoint.GetComponent <WiperController>();
        sprayController = SprayArmJoint.GetComponent <SprayController>();
        maxFluid       += PersistentManagerScript.Instance.InvSprayIncrease();
        fluidRemaining.Clear();
        for (int i = 0; i < 3; i++)
        {
            fluidRemaining.Add(maxFluid);
            refilling.Add(false);
        }

        gaugeMoveJ = gaugeJ.GetComponent <GaugeMove>();
        gaugeMoveK = gaugeK.GetComponent <GaugeMove>();
        gaugeMoveL = gaugeL.GetComponent <GaugeMove>();

        characterMover = character.GetComponent <CharacterMover>();
    }