Search Unity

2 different codes for Android and iOS?

Discussion in 'Unity Ads & User Acquisition' started by drndfx, Jan 30, 2019.

Thread Status:
Not open for further replies.
  1. drndfx

    drndfx

    Joined:
    Jul 3, 2013
    Posts:
    89
    There’s this code when starting video ads in games

    Code (CSharp):
    1.  string gameStoreId = "1234567";
    2.     bool testMode = true;
    If Android and iOS has different game Store ID codes, how do you distinguish between them?

    1) do you create two different scripts for each?
    2) or is there a way where Unity will know which platform I’m about to export to?

    Thanks in advance.
     
  2. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
  3. drndfx

    drndfx

    Joined:
    Jul 3, 2013
    Posts:
    89
    Thank you.
     
Thread Status:
Not open for further replies.