void Start()
 {
     Portal = GameObject.Find("Portal_GUI").GetComponent <SelectZone> ();
     fillImage.fillAmount = 0;
     timer      = (GameObject)Instantiate(TimerPrefab, new Vector3(0, 0, 0), Quaternion.identity);
     timer.name = "Portal_Timer";
     Timer      = timer.GetComponent <PortalTimer> ();
     Maxtime    = Portal.CurrentTravelTime;
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     wallmManager = GeneralEditorManager.GetComponent <GeneralEditorManager>().wallEditor;
     gridmanager  = GeneralEditorManager.GetComponent <GeneralEditorManager>().gridManager;
     if (assailant != null)
     {
         player_controller = assailant.GetComponent <PlayerController>();
         assailant_speed   = assailant.GetComponent <NavMeshAgent>().speed;
     }
     selectZoneScript = this.gameObject.GetComponent <SelectZone>();
 }
    // Use this for initialization
    void Start()
    {
        IngredientLocation         = GameObject.Find("Portal_GUI").GetComponent <SelectZone>();
        Ingredient1_Graphic.sprite = IngredientLocation.RewardCommon.IngredientGraphic;
        Ingredient2_Graphic.sprite = IngredientLocation.RewardUncommon.IngredientGraphic;
        Ingredient3_Graphic.sprite = IngredientLocation.RewardRare.IngredientGraphic;
        Ingredient1_Text.text      = IngredientLocation.RewardCommon.IngredientName;
        Ingredient2_Text.text      = IngredientLocation.RewardUncommon.IngredientName;
        Ingredient3_Text.text      = IngredientLocation.RewardRare.IngredientName;

        IngredientLocation.AddToPlayerInventPortal(IngredientLocation.RewardCommon);
        IngredientLocation.AddToPlayerInventPortal(IngredientLocation.RewardUncommon);
        IngredientLocation.AddToPlayerInventPortal(IngredientLocation.RewardRare);

        IngredientLocation.SelectingLocation.SetActive(true);
    }
Exemple #4
0
 // Use this for initialization
 void Start()
 {
     Invent     = GameObject.Find("Inventory_System").GetComponent <InventorySystem> ();
     Portal     = GameObject.Find("Portal_GUI").GetComponent <SelectZone> ();
     targetTime = Portal.CurrentTravelTime;
 }