Ejemplo n.º 1
0
 // 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();
 }
Ejemplo n.º 2
0
 void Start()
 {
     g = GameObject.FindGameObjectWithTag("Enemy").GetComponent <Goatzilla> ();
 }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     goatzilla = GameObject.FindGameObjectWithTag("Enemy").GetComponent <Goatzilla> ();
     spr       = GetComponent <SpriteRenderer> ();
 }
Ejemplo n.º 4
0
 void Start()
 {
     rb2d      = gameObject.GetComponent <Rigidbody2D> ();
     goatzilla = FindObjectOfType <Goatzilla> ();
     mecha     = FindObjectOfType <Mecha> ();
 }