Example #1
0
 void Start()
 {
     myAnim = this.GetComponent <Animator>();
     myAnim.SetBool("isStopped", true);
     myAnim.SetBool("isPlaying", false);
     myAnim.speed = 0.0f;
     gameStats    = gameManager.GetComponent <InGameStats> ();
     depotFull    = false;
 }
Example #2
0
    void Start()
    {
        //Set up depot bar
        bar = GetComponent <Image> ();
        RectTransform barRect = GetComponent <RectTransform> ();

        //Set up manager
        gameManagerStats = gameManager.GetComponent <InGameStats> ();
    }
Example #3
0
    void Start()
    {
        firstFill        = true;
        gameManagerStats = gameManager.GetComponent <InGameStats> ();
        //Set up health bar
        healthbar = GetComponent <Image> ();
        RectTransform healthRect = GetComponent <RectTransform> ();

        healthRect.sizeDelta        = new Vector2(Screen.width * 0.3f, Screen.height * 0.04f);
        healthRect.anchoredPosition = new Vector2(Screen.width * 0.08f, -Screen.height * 0.05f);
    }
    // Use this for initialization
    void Start()
    {
        //setting agent
        this.agent = GetComponent <NavMeshAgent> ();

        this.prevWaypoint = this.waypoint;

        gameObject.renderer.material.color = Color.green;

        gameManagerStats = gameManager.GetComponent <InGameStats> ();
    }
 void Start()
 {
     myAnim = this.GetComponent <Animator>();
     myAnim.SetBool("isStopped", true);
     myAnim.SetBool("isPlaying", false);
     myAnim.speed = 0.0f;
     gameStats    = gameManager.GetComponent <InGameStats> ();
     depotFull    = false;
     capacity     = gameStats.depotCapacity [depotNumber];
     resourceVal  = gameStats.depotResourceValue [depotNumber];
     currentStock = gameStats.depotCurrentStock [depotNumber];
 }
    // Use this for initialization
    void Start()
    {
        isRunning = false;

        this.prevWaypoint = this.waypoint;

        //setting agent
        this.agent = GetComponent <NavMeshAgent> ();

        gameObject.renderer.material.color = Color.magenta;

        updateSmellRange();

        gameManagerStats = gameManager.GetComponent <InGameStats> ();
    }
 void Start()
 {
     gameManager = GameObject.Find("GameManager");
     gameStats   = gameManager.GetComponent <InGameStats> ();
     dead        = false;
 }
Example #8
0
 // Use this for initialization
 void Start()
 {
     gameStats = gameManager.GetComponent <InGameStats> ();
     depotFull = false;
 }
Example #9
0
 // Use this for initialization
 void Start()
 {
     gameManagerStats = gameManager.GetComponent <InGameStats> ();
     stats            = this.GetComponent <Text> ();
 }
 // Use this for initialization
 void Start()
 {
     foundTarget      = false;
     agent            = GetComponent <NavMeshAgent> ();
     gameManagerStats = gameManager.GetComponent <InGameStats> ();
 }
Example #11
0
 void Start()
 {
     currentHealth = maxHealth;
     gameStats     = gameManager.GetComponent <InGameStats> ();
     dead          = false;
 }
Example #12
0
 // Use this for initialization
 void Start()
 {
     gameManagerStats  = gameManager.GetComponent <InGameStats> ();
     characterSelected = false;
     stats             = this.GetComponent <Text> ();
 }