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;
|
return;
|
||||||
|
|
||||||
var host = CECGameRun.Instance?.GetHostPlayer();
|
var host = CECGameRun.Instance?.GetHostPlayer();
|
||||||
bool show = host != null && host.IsUsingTrashBox() &&
|
bool isUsingTrashBox = host != null && host.IsUsingTrashBox();
|
||||||
(package == PKG_INVENTORY || package == PKG_TRASHBOX);
|
bool isValidPackage = (package == PKG_INVENTORY || package == PKG_TRASHBOX);
|
||||||
|
|
||||||
|
bool show = isUsingTrashBox && isValidPackage;
|
||||||
|
|
||||||
|
if (storageTransferButton == null && !show)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
btn.gameObject.SetActive(show);
|
btn.gameObject.SetActive(show);
|
||||||
if (!show)
|
if (!show)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user