Skip to content

Feature4 leveldesign#11

Open
MalharDevasthali wants to merge 2 commits intooutscal:masterfrom
MalharDevasthali:feature4-leveldesign
Open

Feature4 leveldesign#11
MalharDevasthali wants to merge 2 commits intooutscal:masterfrom
MalharDevasthali:feature4-leveldesign

Conversation

@MalharDevasthali
Copy link

@MalharDevasthali MalharDevasthali commented Mar 18, 2020

Chomper Bug Fixes, Levels Added, Level Unlocking


private void Start()
{
animator.SetBool("isWalking", true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SetState(walking)

!PlayerIsNotInFront())
{
AttackCo = Attack();
StartCoroutine(AttackCo);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AttackCoroutine = StartCoroutine(Attack());

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if(AttackCoroutine == null) {
AttackCoroutine = StartCoroutine(Attack());
}

{
isPlayerDetected = false;
if (AttackCo != null)
StopCoroutine(AttackCo);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (AttackCo != null) {
StopCoroutine(AttackCo);
AttackCo = null;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

StopAttack();

private IEnumerator Attack()
{
Debug.Log("In Attack Coroutine");
inAttack = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

yield return new WaitForSeconds(0.4f);
PlayerStats.instance.DamagePlayer();
yield return new WaitForSeconds(0.5f);
inAttack = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

StopAttack();

{
private void OnTriggerEnter2D(Collider2D other)
{
if (other.CompareTag("Player"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get type instead

{
if (other.CompareTag("Player"))
{
UIManager.instance.Level1CompleteCheck();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generic level complete check


private void OnTriggerEnter2D(Collider2D other)
{
if (other.CompareTag("Player"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get type

else
instance = this;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CheckForLevelComplete() {
if(currentLevel.IsLevelcomplete()){
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants