This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public List<Coordinate> FindLine() | |
{ | |
Coordinate _current = new Coordinate(0, 0); | |
List<Coordinate> _path = new List<Coordinate>() { _current }; | |
while(true) | |
{ | |
bool _added = false; | |
if (m_board[_path[0].x, _path[0].y] != -1) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void SkipDays(int days) // 這是一個放在GameManager中,供呼叫"每日結算"的公用方法 | |
{ | |
// 在這裡會先將每日結算時會使用到的資料做初始化與設定 | |
m_dayResult.totalSkipedDays = 0; | |
m_dayResult.gainMoney = 0; | |
for (int i = 0; i < days; i++) | |
{ | |
m_dayResult.totalSkipedDays++; | |
m_dayResult.gainMoney += GameUtility.GetSubPayMoney(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Input.GetKeyDown(KeyCode.Space) && attackTimer <= 0) | |
{ | |
switch (attackState) | |
{ | |
case 1: | |
Instantiate(AttackWave1, gameObject.transform.position, gameObject.transform.rotation); | |
attackToAttackTimer = attackToAttackTimeEach; | |
attackState++; | |
break; | |
case 2: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void SetMessage(string addMessage) | |
{ | |
for (int i = 8 ; i > -1 ; i--) | |
{ | |
if (i == 0) | |
{ | |
MessageLine[i] = addMessage; | |
} | |
else MessageLine[i] = MessageLine[i - 1]; |