public void ItemArrowButton_OnClick() { openItem = !openItem; defaultItemPickerGO.SetActive(!openItem); ItemAnimatorCont animator = ItemAnimatorCont.Instance; animator.PlayItemAnimations(openItem, itemVertical); }
/// <summary> /// Handles click event of arrow button and also handles close /// operations when a weapon has been choosen. /// </summary> public void WeaponArrowButton_OnClick() { openWeapon = !openWeapon; defaultWeaponPickerGO.SetActive(!openWeapon); ItemAnimatorCont animator = ItemAnimatorCont.Instance; animator.PlayWeaponAnimations(openWeapon, weaponVertical); }
// Use this for initialization void Start() { #region Sing. if (Instance == null) { Instance = this; } #endregion // Before animations start, we should decide orientation. // If we don't, it chooses horizontal because "vertical" // parameter is set false as default. PlayItemAnimations(false, true); }