public GameObject heartsPlane; //NOVO // za kaj se je to sploh rabl?? //private Component Score_field; //public ArrayList pozitions = new ArrayList(); void Awake() { master = this; heartsPlane.transform.localScale = new Vector3(1f, (float)lives, 1f); //NOVO heartsMat.mainTextureScale = new Vector2((float)lives, 1f); //NOVO }
void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(instance); } else { Destroy(gameObject); } }