Example #1
0
    void Start()
    {
        rand          = new System.Random(moveSeed);
        timer         = moveTime;
        direction     = 2;
        currentHealth = maxHealth;

        isDead      = false;
        drop        = GetComponent <DropItemUponDeath>();
        rigidbody2d = GetComponent <Rigidbody2D>();
        animator    = GetComponent <Animator>();
    }
    void Start()
    {
        cam = Camera.main.GetComponent <CameraScript>();

        freezeTimer   = freezeTime;
        rand          = new System.Random(moveSeed);
        timer         = moveTime;
        grabbed       = false;
        frozen        = false;
        startPosition = new Vector2(0, -4);
        currentHealth = maxHealth;

        isDead      = false;
        drop        = GetComponent <DropItemUponDeath>();
        rigidbody2d = GetComponent <Rigidbody2D>();
        animator    = GetComponent <Animator>();
    }
Example #3
0
    void Start()
    {
        rand          = new System.Random(moveSeed);
        timer         = moveTime;
        stopTimer     = stopTime;
        direction     = 2;
        isStopped     = false;
        currentHealth = maxHealth;
        isDead        = false;
        startingUp    = true;
        originalSpeed = speed;
        speed         = 0;

        drop        = GetComponent <DropItemUponDeath>();
        rigidbody2d = GetComponent <Rigidbody2D>();
        animator    = GetComponent <Animator>();
    }
Example #4
0
    void Start()
    {
        rand          = new System.Random(moveSeed);
        timer         = moveTime;
        attackTimer   = attackTime;
        freezeTimer   = freezeTime;
        direction     = 2;
        lastDirection = direction;
        isStopped     = false;
        launched      = false;
        frozen        = false;
        currentHealth = maxHealth;

        isDead      = false;
        drop        = GetComponent <DropItemUponDeath>();
        rigidbody2d = GetComponent <Rigidbody2D>();
        animator    = GetComponent <Animator>();
    }