Ejemplo n.º 1
0
    void Start()
    {
        //line = GetComponent<LineRenderer>();

        playerController = InputManager.player1;
        rb = GetComponent <Rigidbody>();
    }
Ejemplo n.º 2
0
    //private Animation anim;



    // Start is called before the first frame update
    void Start()
    {
        rb                = GetComponent <Rigidbody>();
        playerBody        = player.GetComponent <Rigidbody>();
        activateAbilities = InputManager.player2;
        hitBall           = GetComponent <SphereCollider>();
        snowballCountdown = Random.Range(-3f, 3f) + 8;
        jumpCountdown     = Random.Range(-2f, 2f) + 5;
        //anim = GetComponent<Animation>();
    }
Ejemplo n.º 3
0
// Justin


    // Start is called before the first frame update
    void Start()
    {
        playerController = InputManager.player1;
        rb     = GetComponent <Rigidbody>();
        points = 0;
        setPointDisplay();
        distanceTraveled = 0;
        prevZ            = transform.position.z;
        distanceToPoints = 0;
        scaleChanger     = 0;
// HEAD

        acceleration   = 0;
        rb.angularDrag = 0f;
        acorn          = 1;
        acornTime      = 0f;
        hit            = false;
        pointsMult     = 1;
        pointsMultTime = 0f;

        //Justin
    }
Ejemplo n.º 4
0
    void Start()
    {
        line = GetComponent <LineRenderer>();

        playerController = InputManager.player1;
    }