Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     GlobalControl.Position = transform.position;
     GlobalControl.Rotation = transform.rotation;
     GlobalControl.Set      = true;
     Cursor.visible         = false;
     pickedObject           = null;
     maxPickUpDistance      = 4.0f;
     healthBar.init(100.0f, 100.0f);
     manaBar.init(100.0f, 100.0f);
     lightningBolt       = GameObject.FindGameObjectWithTag("LightningBolt").GetComponent <LightningBoltScript>();
     playerHitted        = false;
     hittedCounter       = 0.0f;
     characterController = GetComponent <CharacterController>();
     isDead               = false;
     isInSlowZone         = false;
     deadAnimationCounter = 0.0f;
 }