Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        survived = false;
        hc       = hero.GetComponent <hero_controller> ();
        gs       = gameScreen.GetComponent <gameScript> ();
//		statusInfo["Planets"][0]["status"] = "sfhsdgds";
        //File.WriteAllText ("C:/Users/Monster/Desktop/" + GameController.control.user_name + "/" + GameController.control.user_name + "_planetsInfo.json", (statusInfo ["Planets"] [0] ["status"]));
    }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     enemy_3           = GetComponent <Rigidbody>();
     anim              = GetComponent <Animator>();
     navig             = GetComponent <NavMeshAgent>();
     isFisting         = false;
     hc                = hero.GetComponent <hero_controller>();
     health            = 100;
     navig.speed       = Random.Range(1, 4);
     ps.enableEmission = false;
 }
Ejemplo n.º 3
0
 void Start()
 {
     time          = 5000f;
     anim          = GetComponent <Animator>();
     comeIn        = false;
     ch            = 0;
     userPlay.text = GameController.control.user_name;
     hc            = hero.GetComponent <hero_controller> ();
     //readRequirements ();
     readmlInfo();
 }
Ejemplo n.º 4
0
 void Start()
 {
     anim              = GetComponent <Animator>();
     navig             = GetComponent <NavMeshAgent>();
     enemy_1           = GetComponent <Rigidbody>();
     isAttacking       = false;
     health            = 50;
     hc                = hero.GetComponent <hero_controller>();
     navig.speed       = Random.Range(1, 4);
     ps.enableEmission = false;
     // gs = gameSc.GetComponent<gameScore>();
 }
Ejemplo n.º 5
0
 void Start()
 {
     navig             = GetComponent <NavMeshAgent>();
     anim              = GetComponent <Animator>();
     isSmacking        = false;
     isThrowing        = false;
     enemy_2           = GetComponent <Rigidbody>();
     hc                = hero.GetComponent <hero_controller>();
     health            = 50;
     navig.speed       = Random.Range(1, 4);
     ps.enableEmission = false;
     // attacker.SetActive(false);
 }
Ejemplo n.º 6
0
 void Start()
 {
     hc         = hero.GetComponent <hero_controller>();
     groundMask = LayerMask.GetMask("Ground");
     envMask    = LayerMask.GetMask("Environment");
     boxHits    = 0;
     coll       = GetComponent <Collider>();
     anim       = GetComponent <Animator>();
     extraction.enableEmission = false;
     rockHits  = 0;
     plantHits = 0;
     //Invoke("LightningInstantiate", 2f);
     //// InvokeRepeating("LightningInstantiate", 2f, 2f);
 }