Beispiel #1
0
 void Awake()
 {
     Instance  = this;
     tipsFrame = GetComponent <Image>();
     tipsText  = GetComponentInChildren <Text>();
     anim      = GetComponent <Animator>();
 }
Beispiel #2
0
 void InstanceRecyclingPoints()
 {
     if (ennemies)
     {
         return;
     }
     ennemies = true;
     TipsDialogue.Show("Gagne des points de recyclage pour acheter des améliorations");
 }
Beispiel #3
0
 void InstancePickup()
 {
     if (pickup)
     {
         return;
     }
     pickup = true;
     TipsDialogue.Show("Approche d'un déchet assommé et appuie sur 'Espace' pour le porter");
 }
Beispiel #4
0
 void InstanceRecycle()
 {
     if (recycle)
     {
         return;
     }
     recycle = true;
     TipsDialogue.Show("Dépose le déchet dans la bonne poubelle pour le recycler");
 }
Beispiel #5
0
 void InstanceEnnemies()
 {
     if (recyclingPoints)
     {
         return;
     }
     recyclingPoints = true;
     TipsDialogue.Show("Attaque les déchets pour les assommer");
 }
Beispiel #6
0
    IEnumerator TipAfterDelay(float delay, string text)
    {
        yield return(new WaitForSeconds(delay));

        TipsDialogue.Show(text);
    }