} //角色攻擊敵人 public void playerChessHititem(Chessman OverlappingChessman) { playerHitChessman = OverlappingChessman; bottle playerHitBottle = OverlappingChessman.gameObject.GetComponent <bottle>(); playerHitBottle.itemEvent(); Destroy(OverlappingChessman.gameObject); return; } //角色碰到物品
// Use this for initialization void Start() { script = bottle.GetComponent <bottle>(); wbarScript = wbar.GetComponent <WbarScript> (); storm_dmg = terrain1.GetComponent <storm> (); }
//epistrofh gia check //na ftia3w mia function h opoia 8a pairnei to lightflicker kai 8a xrhsimopoieite ama o fakos exei 3eperasei ta 4:30 lepta void Start() { bottleScript = bottle.GetComponent <bottle>(); oasiScript = oasi.GetComponent <oasi>(); }
// Use this for initialization void Start() { script = bottle.GetComponent <bottle>(); //sto script bazoume to script tou bottle waterScript = water_bar.GetComponent <WbarScript> (); // sto waterscript bazoume to script apo thn mpara tou nerou }