3922人加入学习
(18人评价)
Unity初级案例 - 炸弹人

Unity2018.4.7,制作完成于2020.12.27

价格 免费

GameController.Instance.enemyCount--;

[展开全文]

  WaitForSeconds

StartCoroutine()

[展开全文]

SpriteRenderer

GetComponent

[展开全文]

ObjectPool

SetActive

 

[展开全文]

Instantiate

transform

 GameObject

[展开全文]

ObjectPool

 Dictionary

GameObject

[展开全文]

Transform

Destroy(item.gameObject)

Update

Input.GetKeyDown(KeyCode.N))

[展开全文]

Sprite

doorSprite

private SpriteRenderer spriteRenderer;

GetComponent<SpriteRenderer>();

.sprite

if (collision.CompareTag(Tags.BombEffect))

isTrigger

[展开全文]
额我紧张 · 2021-02-17 · 34-Door 0

SuperWall = "SuperWall";

BombEffect

  player.GetComponent<playerCtrl>().Init(1, 3, 2);

 

[展开全文]

(collision.CompareTag("BombEffect"))

Destroy(gameObject)

idInjurd

[展开全文]

superWallPointList

IsSuperWall

Contains

Instance

[展开全文]

DealyBoom

yield return new WaitForSeconds(time)

Destroy(gameObject);

Instantiate()

Quaternion.identity

GameObject

Vector2

StartCoroutine("DealyBomm",dealyTime);

GetComponent<Bomb>().Init(2,1)

[展开全文]

CreateBomb

Input.GetKeyDown(KeyCode.Space)

Instantiate

transform

bomb.transform.position=new Vector3(Mathf.RoundToInt(transform.position.x),

[展开全文]

IEnumerator Tnjured(int time)

WaitForSeconds(0.25f);

StartCoroutine("")

[展开全文]

private SpriteRenderer spriteRenderer;

GetComponent<Rigidbody2D>();

private Color color;

[展开全文]

授课教师

SiKi学院老师

课程特色

下载资料(1)
视频(66)