// ********************awake*************************** void Awake() { // wywolania managera managerGry = GameObject.Find("GameManager"); Manago = managerGry.GetComponent<gameManager>(); BudynkiBaza = managerGry.GetComponent<budynkiBaza>(); GuiButton = managerGry.GetComponent<guiButton>(); spriteRenderer = GetComponent<SpriteRenderer>(); BudynekClass = managerGry.GetComponent<budynekClass>(); }
void Start() { Manago = GetComponent<gameManager>(); BudynkiBaza = GetComponent<budynkiBaza>(); }
// ********************start*************************** void Start() { Manago = GetComponent<gameManager>(); GuiButton = GetComponent<guiButton>(); SlotClass = GetComponent<slotClass>(); BudynkiBaza = GetComponent<budynkiBaza>(); }