示例#1
0
        public void UpdateTreeObject()
        {
            if (TreeObj != null && API.Shared.DoesEntityExist(TreeObj))
            {
                API.Shared.DeleteEntity(TreeObj);
            }

            switch (Stage)
            {
            case Stages.Waiting:
                TreeObj = API.Shared.CreateObject(-1186441238, TreePos, TreeRot);
                break;

            case Stages.Hidden:
                TreeObj = null;
                break;

            default:
                TreeObj = API.Shared.CreateObject(-1279773008, TreePos, TreeRot);
                break;
            }

            TreeObj?.setSyncedData("IS_TREE", true);
        }