コード例 #1
0
 public void Awake()
 {
     if (instance == null)
     {
         instance     = this;
         achievements = new List <Achievement> ();
         ballMaterial = MaterialsRepository.Get("green");
         SkinsRepository.addSkin(new Skin(SpriteRepository.Get("green"), ballMaterial));
         addAchievements();
         DontDestroyOnLoad(this.gameObject);
     }
 }
コード例 #2
0
 public override void effect()
 {
     SkinsRepository.addSkin(new Skin(achieved, MaterialsRepository.Get("orange")));
 }
コード例 #3
0
 public override void effect()
 {
     SkinsRepository.addSkin(new Skin(achieved, MaterialsRepository.Get("eight_ball")));
 }