예제 #1
0
    private void SpawnReward()
    {
        if (CakeRaceMode.CurrentRewardCrate == LootCrateType.None)
        {
            return;
        }
        GameObject go = LootCrateGraphicSpawner.CreateCrate(CakeRaceMode.CurrentRewardCrate, this.cakeHolder, new Vector3(0.6f, 0f, -0.2f), Vector3.one * 0.65f, Quaternion.Euler(new Vector3(0f, 0f, -90f)));

        LayerHelper.SetLayer(go, base.gameObject.layer, true);
    }
예제 #2
0
 private void OnAdReady()
 {
     this.Activate(true);
     if (this.currentCrateIcon != null)
     {
         UnityEngine.Object.Destroy(this.currentCrateIcon);
     }
     this.currentCrateIcon = LootCrateGraphicSpawner.CreateCrate(this.reward, this.cratePosition, Vector3.zero, Vector3.one, Quaternion.identity);
     LayerHelper.SetLayer(this.currentCrateIcon, base.gameObject.layer, true);
 }