Santi
170d11aa4d
ColourSorting: Removed completed tasks from Colours, added Bug comment to pickup script
29 lines
698 B
C#
29 lines
698 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
//* General Comments or Finished Tasks
|
|
//TODO Tasks left to be done for game
|
|
//! Bugs or Issues
|
|
//? Questions or Suggestions
|
|
|
|
public class Moles_IsHit : MonoBehaviour
|
|
{
|
|
public bool IsHit;
|
|
//* Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
IsHit = false; //* Mole starts as not being hit
|
|
}
|
|
|
|
//* Update is called once per frame
|
|
void Update()
|
|
{
|
|
if(IsHit)
|
|
{
|
|
//* Slowly move the mole down into the hole
|
|
transform.position = new Vector3(transform.position.x, transform.position.y - 0.01f, transform.position.z);
|
|
}
|
|
}
|
|
}
|