// Use this for initialization void Start() { bd = GM.Instance.player.GetComponentInChildren <bomb_det>(); start_pos = fill.transform.position; fill_child = fill.transform.GetChild(0); canvas = GetComponentInParent <Canvas>(); }
public bool gainBombCharge(int charge) { bomb_det bd = GetComponent <bomb_det>(); if (bd) { return(bd.addCharge(charge)); } return(false); }
// Use this for initialization void Start() { bd = GM.Instance.player.GetComponentInChildren <bomb_det>(); }