Exemplo n.º 1
0
    } //角色攻擊敵人

    public void playerChessHititem(Chessman OverlappingChessman)
    {
        playerHitChessman = OverlappingChessman;
        bottle playerHitBottle = OverlappingChessman.gameObject.GetComponent <bottle>();

        playerHitBottle.itemEvent();
        Destroy(OverlappingChessman.gameObject);

        return;
    } //角色碰到物品
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     script     = bottle.GetComponent <bottle>();
     wbarScript = wbar.GetComponent <WbarScript> ();
     storm_dmg  = terrain1.GetComponent <storm> ();
 }
Exemplo n.º 3
0
    //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>();
    }
Exemplo n.º 4
0
 // 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
 }