npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

com.actuananh.core

v1.0.1

Published

GameTool: Công cụ quản lý và khởi tạo các SDK cơ bản

Downloads

3

Readme

Game Tool

Admob

Setting

  1. Tạo AdsManager GameObject

    Tạo 1 GameObject trong Scene và Add Compoment AdsManager.cs vào GameObject.

  2. Setting Admob Vào Menu: GameTool -> Ads Setting.

Ad Manager Panel

  • Buttom CheckUpdate: Kiểm tra phiên bản mới nhất của Admob
  • Buttom Update: Download và Import phiên bản mới nhất của Admob
  • Is tag For Child: Quảng cáo có hướng đến trẻ em: True or False
  • TimeBetweenInterstitial: Thời gian giãn cách giữa 2 làn quảng cáo Interstitial
  • AutoLoadBannerOnStartup: Quảng cáo Banner sẽ hiển thị ngay khi Game chạy
  • Android Ads Unit ID: Cài đặt các ID quảng cáo và các máy Test cho Android
  • IOS Unit ID: Cài đặt các ID quảng cáo và các máy Test cho IOS

Gọi Quảng Cáo:

Thêm namespcae AC.GameTool.Ads vào Class

using AC.GameTool.Ads;
  1. Banner
  • Load và hiển thị Banner
 AdsManager.Instance.LoaddingAdsBanner();
  • Hiên/Ẩn Banner đã Load
AdsManager.Instance.ShowAdsBanner(bool isShow);
ishow = True: Hiển thị Banner
ishow = False: Ẩn Banner
  1. Interstital

Hiển thị quảng cáo Interstitial

AdsManager.Instance.ShowInterstitialAd();
  1. Reward

Hiển thị quảng cáo Reward

AdsManager.Instance.ShowAdsReward(string placement, Action successedCallback, Action<string> failedCallback);
placement: Tên vị trí đặt quảng cáo(để debug or send Event)
successedCallback: Action để gọi lại khi người dùng xem hết quảng cáo và nhận thưởng
failedCallback: Action gọi khi quảng cáo bị lỗi: không load được, không hiển thị, lỗi mạng,...
VD:
AdsManager.Instance.ShowAdsReward("Collect X2", CollectX2Success, CollectX2Failed);
void CollectX2Success()
{
  //Thành công
  money += moneyBonus * 2;
}
void CollectX2Failed(String failedSmg)
{
  //Lỗi
  LogManager.Log("Da co loi: " + failedSmg);
}
  1. Interstital Reward

Hiển thị quảng cáo Insterstitial Reward

AdsManager.Instance.ShowRewardedInterstitialAd(string placement, Action successedCallback, Action<string> failedCallback);
Thiết lập như Reward
  1. App Open Ads

Khi tích vào Is Use Open App trong Windows "Ads Setting Manager" thì quảng cáo App Open sẽ tự động gọi mỗi khi người dùng mở App khác và quay trở lại Game. Hoặc có thể gọi hàm sau để hiện thị App Open Ads thủ công (VD: khi mở game lần đầu tiên)

AdsManager.Instance.ShowAppOpenAdIfAvailable();