Ejemplo n.º 1
0
 void Update()
 {
     timer -= Time.deltaTime;
     if (timer <= 0)
     {
         timer = timeBetweenDigs;
         DiggingScript.AddTrash(5);
     }
 }
Ejemplo n.º 2
0
 public override void Remove()
 {
     DiggingScript.MaxTrash -= 50;
     DiggingScript.AddTrash(0);
     GameObject.Destroy(gameObject);
 }