-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbossScript.cs
More file actions
73 lines (55 loc) · 1.53 KB
/
Copy pathbossScript.cs
File metadata and controls
73 lines (55 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class bossScript : MonoBehaviour {
int bossMoveX = 0;
int bossMoveY = 0;
float timeforTurn;
public GameObject ctrObj;
DeckController ctrScr;
string bossID = "00";
string bAttCode;
string bBtyCode;
SpriteRenderer thisSprite;
Sprite bossImg;
// Use this for initialization
void Start () {
bossID = InfoBank.bossNum_s;
thisSprite = this.GetComponent<SpriteRenderer>();
bossImg = Resources.Load("Sprites/BossImages/boss" + bossID, typeof(Sprite)) as Sprite;
thisSprite.sprite = bossImg;
ctrScr = ctrObj.GetComponent<DeckController>();
}
// Update is called once per frame
void Update () {
/*
if (enemyTurn) {
timeforTurn -= Time.deltaTime;
if (timeforTurn <= 0) {
ctrScr.playerTurn = true;
enemyTurn = false;
ctrScr.flipTile(bossMoveX, bossMoveY);
}
}
*/
}
public void startMove(int X, int Y, string AttCode) {
bossMoveX = X;
bossMoveY = Y;
}
public int getMoveX() {
return bossMoveX;
}
public int getMoveY()
{
return bossMoveY;
}
public void setAllBossInfo(string aCode, string bCode) {
bAttCode = aCode;
bBtyCode = bCode;
}
private void OnMouseOver()
{
ctrScr.onBossMouseOver();
}
}