// Use this for initialization void Start() { anim = GetComponent <Animator> (); state = 0; isJumping = false; dashPunch = false; isStop = false; maxPos.x = 4.6f; minPos.x = -4.45f; anim = GetComponent <Animator> (); isOtherCombo = false; startReset = false; p1LPressed = false; p1RPressed = false; p2LPressed = false; p2RPressed = false; isMiniGame = false; timePressedNormal = 0; timePressedHeavy = 0; resetTimer = 0f; resetDuration = 0.7f; goatzilla = FindObjectOfType <Goatzilla> (); sprP1 = buttons[0].GetComponent <SpriteRenderer>(); sprP2 = buttons[1].GetComponent <SpriteRenderer>(); isPressed[0] = false; isPressed[1] = false; startPressedTimer = false; RandomButtonNumber(); }
void Start() { g = GameObject.FindGameObjectWithTag("Enemy").GetComponent <Goatzilla> (); }
// Use this for initialization void Start() { goatzilla = GameObject.FindGameObjectWithTag("Enemy").GetComponent <Goatzilla> (); spr = GetComponent <SpriteRenderer> (); }
void Start() { rb2d = gameObject.GetComponent <Rigidbody2D> (); goatzilla = FindObjectOfType <Goatzilla> (); mecha = FindObjectOfType <Mecha> (); }