示例#1
0
    public override bool SetReady(bool r, GameObject go = null, RaycastHit hitInfo = default(RaycastHit)) {
        if ((r) && (hitInfo.collider.tag.Equals("Breakable"))) {
            // La habilidad está lista para ser usada
            ready = true;
            objectToBreak = hitInfo.collider.GetComponent<BreakableObject>();
            objectToBreak.SetBreakPoint(hitInfo.point);
        } else {
            ready = false;
        }

        return ready;
    }