Merge pull request 'feature/review-npc' (#480) from feature/review-npc into develop
Reviewed-on: https://git.pthub.vn/Unity/perfect-world-unity/pulls/480
This commit is contained in:
@@ -1811,8 +1811,15 @@ namespace BrewMonster.Scripts.Managers
|
||||
return;
|
||||
|
||||
var host = CECGameRun.Instance?.GetHostPlayer();
|
||||
bool show = host != null && host.IsUsingTrashBox() &&
|
||||
(package == PKG_INVENTORY || package == PKG_TRASHBOX);
|
||||
bool isUsingTrashBox = host != null && host.IsUsingTrashBox();
|
||||
bool isValidPackage = (package == PKG_INVENTORY || package == PKG_TRASHBOX);
|
||||
|
||||
bool show = isUsingTrashBox && isValidPackage;
|
||||
|
||||
if (storageTransferButton == null && !show)
|
||||
{
|
||||
return;
|
||||
}
|
||||
btn.gameObject.SetActive(show);
|
||||
if (!show)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user